aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2008-06-19 07:06:11 +0000
committerMike Makonnen <mtm@FreeBSD.org>2008-06-19 07:06:11 +0000
commit7d28174b918f339c3e70205adcaef2705e562cab (patch)
tree57af6e3ecbf24ede1869328e1892c7bfa44971f0 /etc
parent8717ddefb632164d992c02606e807c29d061ab95 (diff)
downloadsrc-7d28174b918f339c3e70205adcaef2705e562cab.tar.gz
src-7d28174b918f339c3e70205adcaef2705e562cab.zip
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf2
-rwxr-xr-xetc/rc.d/quota2
-rw-r--r--etc/rc.subr4
3 files changed, 6 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 177f4d529dba..357c45e5cdc3 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -528,7 +528,7 @@ chkprintcap_flags="-d" # Create missing directories by default.
dumpdev="AUTO" # Device to crashdump to (device name, AUTO, or NO).
dumpdir="/var/crash" # Directory where crash dumps are to be stored
savecore_flags="" # Used if dumpdev is enabled above, and present.
-enable_quotas="NO" # turn on quotas on startup (or NO).
+quota_enable="NO" # turn on quotas on startup (or NO).
check_quotas="YES" # Check quotas on startup (or NO).
quotaon_flags="-a" # Turn quotas on for all file systems (if enabled)
quotaoff_flags="-a" # Turn quotas off for all file systems at shutdown
diff --git a/etc/rc.d/quota b/etc/rc.d/quota
index 2a1a2def4989..01d980220e65 100755
--- a/etc/rc.d/quota
+++ b/etc/rc.d/quota
@@ -13,7 +13,7 @@
. /etc/rc.subr
name="quota"
-rcvar="enable_quotas"
+rcvar=`set_rcvar`
start_cmd="quota_start"
stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
diff --git a/etc/rc.subr b/etc/rc.subr
index 341f3c8b7d20..15377b005d0b 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -942,6 +942,10 @@ load_rc_config()
debug "Sourcing /etc/rc.conf.d/${_name}"
. /etc/rc.conf.d/"$_name"
fi
+
+ # Old variable names support
+ #
+ [ -n "$enable_quotas" ] && quota_enable="$enable_quotas"
}
#