aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-03-28 19:55:03 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-03-28 19:55:03 +0000
commit360febd0a94959f37a629cdd4a9ac31a5e4f6240 (patch)
tree8ebf37ad12764219e0a86d9f419a681b7b4eabab /rc.d/rc.sysinit
parentb97e50cf7616276703e6c06d1aa0787d77dc3214 (diff)
downloadinitscripts-360febd0a94959f37a629cdd4a9ac31a5e4f6240.tar
initscripts-360febd0a94959f37a629cdd4a9ac31a5e4f6240.tar.gz
initscripts-360febd0a94959f37a629cdd4a9ac31a5e4f6240.tar.bz2
initscripts-360febd0a94959f37a629cdd4a9ac31a5e4f6240.tar.xz
initscripts-360febd0a94959f37a629cdd4a9ac31a5e4f6240.zip
Add "forcequotacheck" (#168118)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b6421172..d28b17e4 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -315,6 +315,9 @@ if ! [[ " $fsckoptions" =~ " -y" ]]; then
fi
_RUN_QUOTACHECK=0
+if [ -f /forcequotacheck ] || strstr "$cmdline" forcequotacheck ; then
+ _RUN_QUOTACHECK=1
+fi
if [ -z "$fastboot" -a "$READONLY" != "yes" ]; then
STRING=$"Checking filesystems"
@@ -500,7 +503,8 @@ if [ -f /.unconfigured ]; then
fi
# Clean out /.
-rm -f /fastboot /fsckoptions /forcefsck /.autofsck /halt /poweroff &> /dev/null
+rm -f /fastboot /fsckoptions /forcefsck /.autofsck /forcequotacheck /halt \
+ /poweroff &> /dev/null
# Do we need (w|u)tmpx files? We don't set them up, but the sysadmin might...
_NEED_XFILES=