From: Rod Whitby Date: Sat, 30 Apr 2005 13:18:11 +0000 (+0000) Subject: Third attempt at new Unslung linuxrc X-Git-Tag: Release-2010-05/1~14236 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa25566fc85786eb74b0f50f25e8039e4ec01912;p=openembedded.git Third attempt at new Unslung linuxrc BKrev: 42738593YJar6dTLvCHT9lLLlZPtEg --- 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