# HG changeset patch # User Christophe Lincoln # Date 1239404949 -7200 # Node ID 341674b44feb1cb82d1424c2a35b8afae7aad0ca # Parent 5dab5934f1ae3cbc077656c9a764b52f8ed030bd tazhw: let init script start networking if hw detected diff -r 5dab5934f1ae -r 341674b44feb tinyutils/tazhw --- a/tinyutils/tazhw Sun Mar 29 21:36:27 2009 +0000 +++ b/tinyutils/tazhw Sat Apr 11 01:09:09 2009 +0200 @@ -84,18 +84,6 @@ fi } -# Retry a Ethernet connection with DHCP after detection (used at boot). -# TODO: try a wireless connection but stop eth0 to avoid conflict. -start_network() -{ - if ifconfig -a | grep -q "eth0"; then - if [ ! -f /var/run/udhcpc.eth0.pid ]; then - echo "Starting udhcpc client on: eth0... " - /sbin/udhcpc -b -i eth0 -p /var/run/udhcpc.eth0.pid - fi - fi -} - # Detect PCI devices and load kernel module only at first boot, # in LiveCD mode or with the command 'detect-pci'. detect_pci_devices() @@ -234,8 +222,7 @@ echo "Detecting PCI devices Kernel modules..." detect_pci_devices echo "Detecting USB devices Kernel modules..." - detect_usb_devices - start_network ;; + detect_usb_devices ;; detect-pci) check_root echo -e "\nDetected PCI devices Kernel modules" && display_line