diff options
author | Joachim Blaabjerg <styx@gentoo.org> | 2002-12-12 11:48:07 +0000 |
---|---|---|
committer | Joachim Blaabjerg <styx@gentoo.org> | 2002-12-12 11:48:07 +0000 |
commit | 97538b093f7911fb89af205d5a71dd5471e8a2b8 (patch) | |
tree | 70f1ae8209afb4caa1be84e90d3e60c247308e17 /sys-apps/quota | |
parent | Fixes #11984 (diff) | |
download | gentoo-2-97538b093f7911fb89af205d5a71dd5471e8a2b8.tar.gz gentoo-2-97538b093f7911fb89af205d5a71dd5471e8a2b8.tar.bz2 gentoo-2-97538b093f7911fb89af205d5a71dd5471e8a2b8.zip |
Damn, I glad I masked the new revision... Forgot to commit the rc script :P
Diffstat (limited to 'sys-apps/quota')
-rw-r--r-- | sys-apps/quota/files/quota.rc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/quota/files/quota.rc b/sys-apps/quota/files/quota.rc new file mode 100644 index 000000000000..fc3c10b2edfa --- /dev/null +++ b/sys-apps/quota/files/quota.rc @@ -0,0 +1,31 @@ +#!/sbin/runscript + +depend() { + need localmount +} + +start() { + ebegin "Starting Quota" + if [ -x /sbin/quotacheck ] + then + echo "Checking quotas. This make take some time." + /sbin/quotacheck -avug + echo "Done." + fi + if [ -x /sbin/quotaon ] + then + echo "Turning on quota" + /sbin/quotaon -avug + fi + eend $? +} + +stop() { + ebegin "Stopping quota" + if [ -x /sbin/quotaoff ] + then + echo "Turning quota off" + /sbin/quotaoff -avug + fi + eend $? +} |