summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-21 16:32:11 -0300
committerRenato Botelho <renato@netgate.com>2016-03-21 16:32:11 -0300
commit593697e498c4906b3d7ee6760fb5b687bb49040b (patch)
treeef318b6378c194cc8376a5bbd7c79ea6a563272a
parent505c8b41c130ee0bc36b2582aeebf0baec7c69e0 (diff)
downloadpfsense-593697e498c4906b3d7ee6760fb5b687bb49040b.zip
pfsense-593697e498c4906b3d7ee6760fb5b687bb49040b.tar.gz
Read return code from right command
-rwxr-xr-xsrc/etc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rc b/src/etc/rc
index 301741f..514bfd0 100755
--- a/src/etc/rc
+++ b/src/etc/rc
@@ -46,8 +46,8 @@ if [ -e /root/force_fsck ]; then
fi
if [ "${PLATFORM}" != "cdrom" ]; then
- /sbin/fsck -p -F
FSCK_ACTION_NEEDED=0
+ /sbin/fsck -p -F
case $? in
0)
echo "Filesystems are clean, continuing..."
OpenPOWER on IntegriCloud