diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-04-30 13:18:11 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-04-30 13:18:11 +0000 |
commit | aa25566fc85786eb74b0f50f25e8039e4ec01912 (patch) | |
tree | 78d11c37e0128675147167e59d8803265ba74825 | |
parent | f5ff746cf5e7e085d28f0abc898be08862c4c5e7 (diff) |
Third attempt at new Unslung linuxrc
BKrev: 42738593YJar6dTLvCHT9lLLlZPtEg
-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 |