diff options
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc index bdf840125d..c86bad2881 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/linuxrc @@ -117,14 +117,14 @@ if [ $prefroot = "jffs2" ] ; then fi +/bin/umount /proc + # Pivot to the desired rootfs and run the initial executable. runboot= if [ -n "$mounted" ] ; then - /bin/umount /proc - cd $mounted if [ -x ./linuxrc -o -L ./linuxrc ] ; then @@ -140,8 +140,11 @@ if [ -n "$mounted" ] ; then /sbin/pivot_root . initrd exec /usr/sbin/chroot . $runboot < /dev/console 1> /dev/console 2> /dev/console -fi -/bin/umount /proc +else + + exec /bin/init + +fi exit 0 |