slitaz-tools rev 326

tazhw: let init script start networking if hw detected
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 11 01:09:09 2009 +0200 (2009-04-11)
parents 5dab5934f1ae
children 7b26606768da
files tinyutils/tazhw
line diff
     1.1 --- a/tinyutils/tazhw	Sun Mar 29 21:36:27 2009 +0000
     1.2 +++ b/tinyutils/tazhw	Sat Apr 11 01:09:09 2009 +0200
     1.3 @@ -84,18 +84,6 @@
     1.4  	fi
     1.5  }
     1.6  
     1.7 -# Retry a Ethernet connection with DHCP after detection (used at boot).
     1.8 -# TODO: try a wireless connection but stop eth0 to avoid conflict.
     1.9 -start_network()
    1.10 -{
    1.11 -	if ifconfig -a | grep -q "eth0"; then
    1.12 -		if [ ! -f /var/run/udhcpc.eth0.pid ]; then
    1.13 -			echo "Starting udhcpc client on: eth0... "
    1.14 -			/sbin/udhcpc -b -i eth0 -p /var/run/udhcpc.eth0.pid
    1.15 -		fi
    1.16 -	fi
    1.17 -}
    1.18 -
    1.19  # Detect PCI devices and load kernel module only at first boot,
    1.20  # in LiveCD mode or with the command 'detect-pci'.
    1.21  detect_pci_devices()
    1.22 @@ -234,8 +222,7 @@
    1.23  		echo "Detecting PCI devices Kernel modules..."
    1.24  		detect_pci_devices
    1.25  		echo "Detecting USB devices Kernel modules..."
    1.26 -		detect_usb_devices 
    1.27 -		start_network ;;
    1.28 +		detect_usb_devices ;;
    1.29  	detect-pci)
    1.30  		check_root
    1.31  		echo -e "\nDetected PCI devices Kernel modules" && display_line