Fix for slugbug 197. This no longer runs udhcp to get the network address
authorJohn Bowler <jbowler@nslu2-linux.org>
Mon, 18 Jul 2005 19:40:57 +0000 (19:40 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 18 Jul 2005 19:40:57 +0000 (19:40 +0000)
if /etc/default/sysconf has bootproto=static  This affects network boot
(nfs) only - previously a DHCP address would be used in preference to the
specified static one.
All NFS root users please test this - the number of failure cases are large
and a failure may leave the system unbootable.

packages/openslug-init/openslug-init-0.10/functions
packages/openslug-init/openslug-init_0.10.bb

index ac8e195..61b5eb2 100755 (executable)
@@ -209,10 +209,13 @@ ifup(){
        # is not left running so this will only work for
        # the lease length time!
        ifconfig "$iface" up
-       test -n "$hostname" && HOSTNAME="-H $hostname"
-       # The script writes the required shell variable assignments
-       # to file descriptor 9
-       eval $(udhcpc -i "$iface" -n -q -r "$ip" $HOSTNAME -s /boot/udhcpc.script 9>&1 >/dev/null)
+       if test "$(config boot)" != static
+       then
+               test -n "$hostname" && HOSTNAME="-H $hostname"
+               # The script writes the required shell variable assignments
+               # to file descriptor 9
+               eval $(udhcpc -i "$iface" -n -q -r "$ip" $HOSTNAME -s /boot/udhcpc.script 9>&1 >/dev/null)
+       fi
 
        test -n "$broadcast" && BROADCAST="broadcast $broadcast"
        test -n "$subnet" && NETMASK="netmask $subnet"
index 59b8c0f..60726d8 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "console/network"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r38"
+PR = "r39"
 
 SRC_URI = "file://linuxrc \
           file://boot/flash \