summaryrefslogtreecommitdiff
path: root/etc/rc.d/quota
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2002-06-13 22:14:37 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2002-06-13 22:14:37 +0000
commit27bc1b287e497f817ea9d08f319e7c7dceb413c4 (patch)
tree3168589e209abd888b033397e3c46dee6131a116 /etc/rc.d/quota
parent1cfdefbb9f162da9aa9c045f07394f49aaef1db8 (diff)
downloadsrc-test2-27bc1b287e497f817ea9d08f319e7c7dceb413c4.tar.gz
src-test2-27bc1b287e497f817ea9d08f319e7c7dceb413c4.zip
Notes
Diffstat (limited to 'etc/rc.d/quota')
-rwxr-xr-xetc/rc.d/quota23
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