diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-05-01 21:53:31 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-05-01 21:53:31 +0000 |
commit | 4445f6054cf438dd4228caac6f337a3c31634cf0 (patch) | |
tree | 7b97f7158da246651ececf620814d95312954a33 /packages/nslu2-binary-only | |
parent | 7e10d10137352e96564269e11ab3a10178844031 (diff) |
Fixed the fall-back, and removed the ifup in Unslung linuxrc
BKrev: 42754fdbR8WWBBzPfEhrkbFS57xzYQ
Diffstat (limited to 'packages/nslu2-binary-only')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc index f1411264a8..0ec763800e 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc @@ -79,7 +79,7 @@ fi if [ $prefroot = "nfsroot" ] ; then sysconflen=`/bin/dd if=/dev/mtd1 bs=4 count=1 2>/dev/null | /usr/bin/hexdump -n 6 -e '"%02d"'` - ipaddr= `/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep ip_addr | sed -e s/ip_addr=//` + ipaddr=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep ip_addr | sed -e s/ip_addr=//` netmask=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep netmask | sed -e s/netmask=//` gateway=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep gateway | sed -e s/gateway=//` @@ -89,7 +89,6 @@ if [ $prefroot = "nfsroot" ] ; then /sbin/route add default gw $gateway /sbin/ifconfig lo up 127.0.0.1 - /sbin/ifup # The nfsrootloc and nfsrootopts vars can be overridden here. . /.nfsroot @@ -145,4 +144,5 @@ fi /bin/echo "Can't chroot to $prefroot, using jffs2 ..." exec /bin/init -exit 0 +# Last-resort fall-back - this should never be reached. +/bin/sh |