]> git.openpandora.org Git - openembedded.git/commitdiff
initscripts-slugos: make checkroot.sh work with any sulogin in 1.0
authorJohn Bowler <jbowler@nslu2-linux.org>
Mon, 6 Feb 2006 06:25:25 +0000 (06:25 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 6 Feb 2006 06:25:25 +0000 (06:25 +0000)
packages/initscripts/initscripts-1.0/slugos/checkroot.sh
packages/initscripts/initscripts-slugos_1.0.bb

index c70855ee43c748c2e8acb00649a9d50aaed5e54a..be640fd254c3d0a469f6d927eb086cb08c7662c1 100644 (file)
@@ -130,22 +130,14 @@ else
       echo "CONTROL-D will exit from this shell and REBOOT the system."
       echo
       leds system panic
-      beep -r 5
+      leds beep -r 5
       # Start a single user shell on the console
       if single_user_ok
       then
-       sulogin -t 600 $CONSOLE
-       # if this exits with SIGALRM (which happens to be 142) the
-       # timeout happened, do not, then, reboot!
-       if test $? -ne 142
-       then
-         reboot -f
-       else
-         echo "/etc/init.d/checkroot.sh: sulogin timeout, continuing boot"
-       fi
-      else
-       echo "/etc/init.d/checkroot.sh: fsck failed, continuing boot"
+       sulogin -t 300 $CONSOLE
+       # assume the system is ok now...
       fi
+      echo "... continuing boot"
     fi
   else
     echo "*** ERROR!  Cannot fsck root fs because it is not mounted read-only!"
index df89fd161bc116edd24e0d98fe39c99406086190..7a4f79c20bae1d9ce32518f380dac22c7cbdf446 100644 (file)
@@ -11,7 +11,7 @@ RCONFLICTS = "initscripts"
 # All other standard definitions inherited from initscripts
 # Except the PR which is hacked here.  The format used is
 # a suffix
-PR := "${PR}.8"
+PR := "${PR}.9"
 
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"