# HG changeset patch # User fireflyoo # Date 1292841781 -28800 # Node ID 2cf65487f61023ad96e064a365f8fda124f80021 # Parent 7125405f8998eb0f881c46888fc93477443f66a1 network.sh:fix bug of after turn-off Wifi can't get dynamic ip diff -r 7125405f8998 -r 2cf65487f610 etc/init.d/network.sh --- a/etc/init.d/network.sh Sat Dec 18 23:30:35 2010 +0100 +++ b/etc/init.d/network.sh Mon Dec 20 18:43:01 2010 +0800 @@ -144,7 +144,7 @@ # For a dynamic IP with DHCP. if [ "$DHCP" = "yes" ] ; then echo "Starting udhcpc client on: $INTERFACE..." - if [ -d /var/run/wpa_supplicant ]; then # wpa wireless && wpa_ctrl_open interface is up + if [ -d /var/run/wpa_supplicant ] && [ "$WIFI" = "yes" ]; then # wpa wireless && wpa_ctrl_open interface is up wpa else # fallback on udhcpc: wep, eth /sbin/udhcpc -b -T 1 -A 12 -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid