summaryrefslogtreecommitdiff
path: root/packages/busybox
diff options
context:
space:
mode:
Diffstat (limited to 'packages/busybox')
-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