aboutsummaryrefslogtreecommitdiffstats
path: root/packages/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-11-27 19:35:58 +0000
committerMatthias Hentges <oe@hentges.net>2006-11-27 19:35:58 +0000
commit3b8845fae2df131cc5528009ab2e96e86560ccee (patch)
tree005b8a3954c3ce968eeb9d9b2b8b360d8b748042 /packages/initscripts/initscripts-1.0
parent32e54b21485668cb3c388a197bfc8815be89f8c2 (diff)
downloadopenembedded-3b8845fae2df131cc5528009ab2e96e86560ccee.tar.gz
initscripts:
- Reformat some echo lines to be more readable on QVGA - echo RETURNCODE after fsck run - raise RETURNCODE for a FUBAR FS to -gt3
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/checkroot.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh
index df3035371b..44db23707e 100755
--- a/packages/initscripts/initscripts-1.0/checkroot.sh
+++ b/packages/initscripts/initscripts-1.0/checkroot.sh
@@ -148,7 +148,10 @@ else
# 2 or larger. A return code of 1 indicates that filesystem
# errors were corrected but that the boot may proceed.
#
- if test "$?" -gt 1
+
+ echo "RETURNCODE: [$RTC]"
+
+ if test "$RTC" -gt 3
then
# Since this script is run very early in the boot-process, it should be safe to assume that the
@@ -159,13 +162,14 @@ else
# Surprise! Re-directing from a HERE document (as in
# "cat << EOF") won't work, because the root is read-only.
echo
- echo "fsck failed. Please repair manually and reboot. Please note"
- echo "that the root filesystem is currently mounted read-only. To"
- echo "remount it read-write:"
+ echo "fsck failed. Please repair manually and reboot. "
+ echo "Please note that the root filesystem is currently "
+ echo "mounted read-only. To remount it read-write:"
echo
echo " # mount -n -o remount,rw /"
echo
- echo "CONTROL-D will exit from this shell and REBOOT the system."
+ echo "CONTROL-D will exit from this shell"
+ echo "and REBOOT the system."
echo
# Start a single user shell on the console
/sbin/sulogin $CONSOLE