mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
bd57d5b0f5
Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
36 lines
504 B
Bash
Executable File
36 lines
504 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Enable/Check the quotas (must be after ypbind if using NIS)
|
|
#
|
|
|
|
# PROVIDE: quota
|
|
# REQUIRE: mountcritremote
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: FreeBSD nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="quota"
|
|
rcvar="enable_quotas"
|
|
start_cmd="quota_start"
|
|
stop_cmd="/usr/sbin/quotaoff -a"
|
|
|
|
quota_start()
|
|
{
|
|
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
|
|
run_rc_command "$1"
|