Package: initrd-netboot-tools
Version: 0.5.3cvs.20040906-16
Severity: normal
Tags: patch


udhcpc man page says:
  deconfig
        deconfig is used when udhcpc starts, and when a lease is lost.  The
        script should put the interface in an up, but deconfigured, state.

However the script /etc/lessdisks/mkinitrd/network_script does not bring 
the network interface up. Adding the word 'up' to the line 
'ifconfig "$interface" 0.0.0.0' fixes the problem... except that the 
ifconfig command may return before the netwok card can autonegotiate 
it's link speed. Hence a small sleep is required.

Here is tha patch:

---8<---
--- network_script.orig 2005-05-03 14:46:55.000000000 +0100
+++ network_script      2005-05-03 12:22:59.000000000 +0100
@@ -39,7 +39,8 @@
     deconfig)   echo "$0: $interface: deconfig"

                 # i/f up, but deconfigured
-                ifconfig "$interface" 0.0.0.0
+                ifconfig "$interface" 0.0.0.0 up
+               /bin/sleep 4
     ;;

     bound)              echo "$0: $interface: bound to $ip"
---8<---

The inclusion of the sleep binary requires the addition of /bin/sleep to 
the variable 'initrd_exe' in /etc/lessdisks/mkinitrd/initrd-netboot.conf
NB: I have not provided a patch for this... but lets face it it is a 
trivial change! 


Thanks
Alex Owen

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages initrd-netboot-tools depends on:
ii  discover-data             2.2005.02.13-1 Data lists for Discover hardware d
ii  initrd-tools              0.1.78         tools to create initrd image for p
ii  python                    2.3.5-1        An interactive high-level object-o


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to