slitaz-boot-scripts rev 220
network.sh:fix bug of after turn-off Wifi can't get dynamic ip
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Mon Dec 20 18:43:01 2010 +0800 (2010-12-20) |
parents | 7125405f8998 |
children | 36546e2a0d3a |
files | etc/init.d/network.sh |
line diff
1.1 --- a/etc/init.d/network.sh Sat Dec 18 23:30:35 2010 +0100 1.2 +++ b/etc/init.d/network.sh Mon Dec 20 18:43:01 2010 +0800 1.3 @@ -144,7 +144,7 @@ 1.4 # For a dynamic IP with DHCP. 1.5 if [ "$DHCP" = "yes" ] ; then 1.6 echo "Starting udhcpc client on: $INTERFACE..." 1.7 - if [ -d /var/run/wpa_supplicant ]; then # wpa wireless && wpa_ctrl_open interface is up 1.8 + if [ -d /var/run/wpa_supplicant ] && [ "$WIFI" = "yes" ]; then # wpa wireless && wpa_ctrl_open interface is up 1.9 wpa 1.10 else # fallback on udhcpc: wep, eth 1.11 /sbin/udhcpc -b -T 1 -A 12 -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid