blob: fc3c10b2edfa7f33667a9840145170ea035f722d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 $?
}
|