diff options
author | gordon <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
commit | 9c5433cb225f7a4e56e87623ea2e4011179553a5 (patch) | |
tree | 3168589e209abd888b033397e3c46dee6131a116 /etc/rc.d/quota | |
parent | 50d99cdfecd92f5323a18aa791a5b1cb9d8b7191 (diff) | |
download | FreeBSD-src-9c5433cb225f7a4e56e87623ea2e4011179553a5.zip FreeBSD-src-9c5433cb225f7a4e56e87623ea2e4011179553a5.tar.gz |
Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
Reviewed by: silence on -current and -hackers
Prodded by: rwatson
Diffstat (limited to 'etc/rc.d/quota')
-rwxr-xr-x | etc/rc.d/quota | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/etc/rc.d/quota b/etc/rc.d/quota index 8f63255..a225880 100755 --- a/etc/rc.d/quota +++ b/etc/rc.d/quota @@ -1,23 +1,34 @@ #!/bin/sh # -# $NetBSD: quota,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $ +# $FreeBSD$ +# + +# Enable/Check the quotas (must be after ypbind if using NIS) # # PROVIDE: quota -# REQUIRE: mountall +# REQUIRE: mountcritremote +# BEFORE: DAEMON +# KEYWORD: FreeBSD . /etc/rc.subr name="quota" +rcvar="enable_quotas" start_cmd="quota_start" stop_cmd="/usr/sbin/quotaoff -a" quota_start() { - echo -n "Checking quotas:" - /usr/sbin/quotacheck -a - echo " done." - /usr/sbin/quotaon -a + if checkyesno check_quotas ; then + echo -n 'Checking quotas:' + quotacheck -a + echo ' done.' + fi + + echo -n 'Enabling quotas:' + quotaon -a + echo ' done.' } load_rc_config $name |