1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.7 2005-10-09 21:39:59 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.8 2005-10-09 22:31:13 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k |
#%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k |
5 |
#%start: 20 |
#%start: 20 |
198 |
then |
then |
199 |
case ${WIRELESS_AUTH_MODE} in |
case ${WIRELESS_AUTH_MODE} in |
200 |
wpa) echo "Using wpa";; |
wpa) echo "Using wpa";; |
201 |
wep,on) iwconfig "${iface}" enc on ;; |
wep|on) iwconfig "${iface}" enc on ;; |
202 |
off) iwconfig "${iface}" enc off ;; |
off) iwconfig "${iface}" enc off ;; |
203 |
*) echo "Unkown Wireless_Auth_Mode '${WIRELESS_AUTH_MODE}'." ;; |
*) echo "Unkown Wireless_Auth_Mode '${WIRELESS_AUTH_MODE}'." ;; |
204 |
esac |
esac |