summaryrefslogtreecommitdiff
path: root/packages/busybox/switchbox-1.00
diff options
context:
space:
mode:
authorDerek Young <dyoung@nslu2-linux.org>2005-02-24 11:09:04 +0000
committerDerek Young <dyoung@nslu2-linux.org>2005-02-24 11:09:04 +0000
commit454cc6e2e9e771fc456b741e3c5372bb5a203ae1 (patch)
tree6496d771a021c967473b1a4d0f896920b563a685 /packages/busybox/switchbox-1.00
parent3854ddc06f55a0ef16165404739ba14e19129570 (diff)
Remove payload dependency for nfsroot, switchbox 4.10
BKrev: 421db5d0cn8KAbFZzi3HfN8ddKIk5w
Diffstat (limited to 'packages/busybox/switchbox-1.00')
-rw-r--r--packages/busybox/switchbox-1.00/linuxrc15
1 files changed, 6 insertions, 9 deletions
diff --git a/packages/busybox/switchbox-1.00/linuxrc b/packages/busybox/switchbox-1.00/linuxrc
index d83aed2180..18a4440351 100644
--- a/packages/busybox/switchbox-1.00/linuxrc
+++ b/packages/busybox/switchbox-1.00/linuxrc
@@ -109,23 +109,20 @@ if [ -n "$prefroot" ] ; then
if [ $prefroot = "nfsroot" ] ; then
- # Should the network drivers come from payload or the jffs2?
- if ( [ "$length" != "FFFFFFFF" ] ); then
- /bin/dd if=$device bs=2 skip=2056 2>/dev/null | /bin/tar zxvf -
- /sbin/insmod ixp400
- /sbin/insmod ixp425_eth
- /sbin/ifconfig ixp0 up $ipaddr netmask $netmask
- /sbin/route add default gw $gateway
- fi
-
/bin/mkdir -p /lib
/bin/ln -s /mnt/jffs2/lib/* /lib
/bin/mkdir -p /sbin
/bin/ln -s /mnt/jffs2/sbin/portmap /sbin
+ /sbin/insmod ixp400
+ /sbin/insmod ixp425_eth
+ /sbin/ifconfig ixp0 up $ipaddr netmask $netmask
+ /sbin/route add default gw $gateway
+
/sbin/ifconfig lo up 127.0.0.1
/sbin/portmap
+ # The nfsrootloc and nfsrootopts vars can be overridden here.
. /mnt/jffs2/.nfsroot
mount -o $nfsrootopts $nfsrootloc /mnt/newroot