From 454cc6e2e9e771fc456b741e3c5372bb5a203ae1 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Thu, 24 Feb 2005 11:09:04 +0000 Subject: Remove payload dependency for nfsroot, switchbox 4.10 BKrev: 421db5d0cn8KAbFZzi3HfN8ddKIk5w --- packages/busybox/switchbox-1.00/linuxrc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'packages/busybox') 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 -- cgit v1.2.3