From e04adbc3fe8c63c9704c9c6167c305cdf0f63165 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 17 Jan 2000 15:54:52 +0000 Subject: fix quoatacheck for non-roto --- rc.d/rc.sysinit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rc.d') 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 -- cgit v1.2.1