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:
parent
8717ddefb6
commit
7d28174b91
@ -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
|
||||
|
@ -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}"
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user