From: Michael Tremer Date: Sun, 16 Aug 2009 19:53:18 +0000 (+0200) Subject: initscripts: Fix startup of checkfs. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d042a1300c5f622cc1cba5fafc641cc09a2fd16;p=ipfire-3.x.git initscripts: Fix startup of checkfs. --- diff --git a/src/initscripts/core/checkfs.conf b/src/initscripts/core/checkfs.conf index 084ab383f..f1de5d4b1 100644 --- a/src/initscripts/core/checkfs.conf +++ b/src/initscripts/core/checkfs.conf @@ -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"