aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-09-05 03:18:33 +0000
committerBill Nottingham <notting@redhat.com>2001-09-05 03:18:33 +0000
commitf76b41efeff894805e117870d7fa342231d01e40 (patch)
tree1131a27a3e45a5d5c1c5f70e1240dc89bce3f0a7 /rc.d
parent8127779c519d8262bf97a9a8eef843b44cce40f4 (diff)
downloadinitscripts-f76b41efeff894805e117870d7fa342231d01e40.tar
initscripts-f76b41efeff894805e117870d7fa342231d01e40.tar.gz
initscripts-f76b41efeff894805e117870d7fa342231d01e40.tar.bz2
initscripts-f76b41efeff894805e117870d7fa342231d01e40.tar.xz
initscripts-f76b41efeff894805e117870d7fa342231d01e40.zip
quota & hwclock tweaks (<pbrown@redhat.com>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt2
-rwxr-xr-xrc.d/rc.sysinit13
2 files changed, 8 insertions, 7 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index dc7bf0fc..39e1febd 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -123,7 +123,7 @@ SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps`
[ -x /sbin/accton ] && runcmd $"Turning off accounting: " /sbin/accton
-[ -x /sbin/quotaoff ] && runcmd $"Turning off quotas: " /sbin/quotaoff -a
+[ -x /sbin/quotaoff ] && runcmd $"Turning off quotas: " /sbin/quotaoff -aug
# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 5fbc0c1e..9b0a628b 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -83,7 +83,7 @@ CLOCKFLAGS="$CLOCKFLAGS --hctosys"
case "$UTC" in
yes|true)
- CLOCKFLAGS="$CLOCKFLAGS -u";
+ CLOCKFLAGS="$CLOCKFLAGS --utc";
CLOCKDEF="$CLOCKDEF (utc)";
;;
no|false)
@@ -94,17 +94,18 @@ esac
case "$ARC" in
yes|true)
- CLOCKFLAGS="$CLOCKFLAGS -A";
+ CLOCKFLAGS="$CLOCKFLAGS --arc";
CLOCKDEF="$CLOCKDEF (arc)";
;;
esac
case "$SRM" in
yes|true)
- CLOCKFLAGS="$CLOCKFLAGS -S";
+ CLOCKFLAGS="$CLOCKFLAGS --srm";
CLOCKDEF="$CLOCKDEF (srm)";
;;
esac
+/sbin/hwclock --adjust
/sbin/hwclock $CLOCKFLAGS
action $"Setting clock $CLOCKDEF: `date`" date
@@ -303,7 +304,7 @@ if [ X"$_RUN_QUOTACHECK" = X1 -a \
/sbin/convertquota -g / && rm -f /quota.group
fi
fi
- action $"Checking root filesystem quotas: " /sbin/quotacheck -n /
+ action $"Checking root filesystem quotas: " /sbin/quotacheck -nug /
fi
# check for arguments passed from kernel
@@ -590,11 +591,11 @@ if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
fi
done
fi
- action $"Checking local filesystem quotas: " /sbin/quotacheck -aR
+ action $"Checking local filesystem quotas: " /sbin/quotacheck -aRnug
fi
if [ -x /sbin/quotaon ]; then
- action $"Enabling local filesystem quotas: " /sbin/quotaon -a
+ action $"Enabling local filesystem quotas: " /sbin/quotaon -aug
fi
# Turn on process accounting