slitaz-boot-scripts rev 84

hwconf.sh: realy retry network connection after PCI detection
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 15 21:49:07 2008 +0200 (2008-05-15)
parents 5e37c635db43
children 1127ecb2b484
files etc/init.d/hwconf.sh
line diff
     1.1 --- a/etc/init.d/hwconf.sh	Thu May 15 21:45:30 2008 +0200
     1.2 +++ b/etc/init.d/hwconf.sh	Thu May 15 21:49:07 2008 +0200
     1.3 @@ -37,7 +37,8 @@
     1.4  	sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$load\""/ \
     1.5  		/etc/rcS.conf
     1.6  	# Retry a network connection with DHCP.
     1.7 -	if ! `ifconfig -a | grep -q "eth0"`; then
     1.8 +	if ifconfig -a | grep -q "eth0"; then
     1.9 +		killall udhcpc
    1.10  		echo "Starting udhcpc client on: eth0... "
    1.11  		/sbin/udhcpc -b -i eth0 -p /var/run/udhcpc.eth0.pid
    1.12  	fi