diff options
author | Gordon Tetlow <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
---|---|---|
committer | Gordon Tetlow <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
commit | 27bc1b287e497f817ea9d08f319e7c7dceb413c4 (patch) | |
tree | 3168589e209abd888b033397e3c46dee6131a116 /etc/rc.d/quota | |
parent | 1cfdefbb9f162da9aa9c045f07394f49aaef1db8 (diff) | |
download | src-test2-27bc1b287e497f817ea9d08f319e7c7dceb413c4.tar.gz src-test2-27bc1b287e497f817ea9d08f319e7c7dceb413c4.zip |
Notes
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 8f632553a109..a225880d3dd4 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 |