]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
initscripts: Fix startup of checkfs.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 19:53:18 +0000 (21:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 19:53:18 +0000 (21:53 +0200)
src/initscripts/core/checkfs.conf

index 084ab383fc159507ae48a7b71dcfe0cde6517944..f1de5d4b1a5e3502fe7e5abb3f55feee39546c88 100644 (file)
@@ -9,6 +9,9 @@ script
        # If requested, do not check the filesystems
        [ -f /fastboot ] && exit 0
 
+       set -e
+       . /etc/init/functions
+
        mount -n -o remount,ro / >/dev/null
        if [ ${?} != 0 ]; then
                log_failure_msg "Mounting root file system in read-only mode"
@@ -35,9 +38,7 @@ script
        fsck ${options} -a -A -C -T
        error_value=${?}
 
-       if [ "${error_value}" = 0 ]; then
-               log_success_msg "Checking file systems..."
-       elif [ "${error_value}" = 1 ]; then
+       if [ "${error_value}" = 1 ]; then
                log_warning_msg "Checking file systems..."
                echo -e "${WARNING}WARNING:\n"
                echo -e "${WARNING}File system errors were found and have been"