Make quota knob conform to other rc(8) knobs. Keep older knob for

compatibility.

Requested by: Volker <volker@vwsoft.com>
This commit is contained in:
Mike Makonnen 2008-06-19 07:06:11 +00:00
parent 8717ddefb6
commit 7d28174b91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179872
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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}"

View file

@ -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"
}
#