summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Blaabjerg <styx@gentoo.org>2002-12-12 11:48:07 +0000
committerJoachim Blaabjerg <styx@gentoo.org>2002-12-12 11:48:07 +0000
commit362699548490a09037872743a969dbddaafcdb40 (patch)
treec57f6b10db4043cc0a0eaa09696e9e6272bd8811 /sys-apps/quota
parentFixes #11984 (diff)
downloadhistorical-362699548490a09037872743a969dbddaafcdb40.tar.gz
historical-362699548490a09037872743a969dbddaafcdb40.tar.bz2
historical-362699548490a09037872743a969dbddaafcdb40.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.rc31
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 $?
+}