1#!/bin/sh 2# 3# $FreeBSD: src/etc/rc.d/quota,v 1.3 2002/10/12 10:31:31 schweikh Exp $ 4# $DragonFly: src/etc/rc.d/quota,v 1.2 2004/01/27 00:42:45 rob Exp $ 5# 6 7# Enable/Check the quotas (must be after ypbind if using NIS) 8# 9 10# PROVIDE: quota 11# REQUIRE: mountcritremote 12# BEFORE: DAEMON 13# KEYWORD: DragonFly 14 15. /etc/rc.subr 16 17name="quota" 18rcvar="enable_quotas" 19start_cmd="quota_start" 20stop_cmd="/usr/sbin/quotaoff -a" 21 22quota_start() 23{ 24 if checkyesno check_quotas; then 25 echo -n 'Checking quotas:' 26 quotacheck -a 27 echo ' done.' 28 fi 29 30 echo -n 'Enabling quotas:' 31 quotaon -a 32 echo ' done.' 33} 34 35load_rc_config $name 36run_rc_command "$1" 37