diff options
Diffstat (limited to 'bootscripts/contrib/lsb-v3/init.d/checkfs')
-rw-r--r-- | bootscripts/contrib/lsb-v3/init.d/checkfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/checkfs b/bootscripts/contrib/lsb-v3/init.d/checkfs index a8a1b6c60..4718a49a3 100644 --- a/bootscripts/contrib/lsb-v3/init.d/checkfs +++ b/bootscripts/contrib/lsb-v3/init.d/checkfs @@ -25,7 +25,7 @@ case "${1}" in fi mount -n -o remount,ro / >/dev/null - if [ ${?} != 0 ] + if [ ${?} -ne 0 ] then log_failure_msg "Mounting root file system in read-only mode" echo -e "${FAILURE}FAILURE:\n" @@ -53,17 +53,17 @@ case "${1}" in fsck ${options} -a -A -C -T error_value=${?} - if [ "${error_value}" = 0 ] + if [ "${error_value}" -eq 0 ] then log_success_msg "Checking file systems..." - elif [ "${error_value}" = 1 ] + elif [ "${error_value}" -eq 1 ] then log_warning_msg "Checking file systems..." echo -e "${WARNING}WARNING:\n" echo -e "${WARNING}File system errors were found and have been" echo -e "${WARNING}corrected. You may want to double-check that" echo -e "${WARNING}everything was fixed properly.${NORMAL}" - elif [ "${error_value}" = 2 -o "${error_value}" = 3 ]; then + elif [ "${error_value}" -eq 2 -o "${error_value}" -eq 3 ]; then log_warning_msg "Checking file systems..." echo -e "${WARNING}WARNING:\n" echo -e "${WARNING}File system errors were found and have been been" |