aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-01-17 15:54:52 +0000
committerBill Nottingham <notting@redhat.com>2000-01-17 15:54:52 +0000
commite04adbc3fe8c63c9704c9c6167c305cdf0f63165 (patch)
tree798976fe520c480b96706ae2e6b38f6ada4cfcca /rc.d/rc.sysinit
parentcc74748ef0a3065b14867866a6cf99f3f1c2c26d (diff)
downloadinitscripts-e04adbc3fe8c63c9704c9c6167c305cdf0f63165.tar
initscripts-e04adbc3fe8c63c9704c9c6167c305cdf0f63165.tar.gz
initscripts-e04adbc3fe8c63c9704c9c6167c305cdf0f63165.tar.bz2
initscripts-e04adbc3fe8c63c9704c9c6167c305cdf0f63165.tar.xz
initscripts-e04adbc3fe8c63c9704c9c6167c305cdf0f63165.zip
fix quoatacheck for non-roto
Diffstat (limited to 'rc.d/rc.sysinit')
-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