aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 7b629dfa..609f6c13 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -350,6 +350,7 @@ if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
fi
fi
+_RUN_QUOTACHECK=0
# Check filesystems
if [ ! -f /fastboot ]; then
STRING="Checking filesystems"
@@ -382,7 +383,7 @@ if [ ! -f /fastboot ]; then
echo "Automatic reboot in progress."
reboot -f
elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
- action "Checking filesystem quotas" /sbin/quotacheck -v -R -a
+ _RUN_QUOTACHECK=1
fi
fi
@@ -391,6 +392,10 @@ fi
# filesystems are NOT unmounted in single user mode.
action "Mounting local filesystems" mount -a -t nonfs,smbfs,ncpfs,proc
+if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
+ action "Checking filesystem quotas" /sbin/quotacheck -v -R -a
+fi
+
# Configure machine if necessary.
if [ -f /.unconfigured ]; then
if [ -x /usr/bin/passwd ]; then