dma: constify bounce reason and avoid strdup
[dragonfly.git] / etc / rc.d / quota
blob21138844baf3307f48c02d36ae6d9b5e1afd6990
1 #!/bin/sh
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.3 2005/11/19 21:47:32 swildner Exp $
7 # Enable/Check the quotas (must be after ypbind if using NIS)
10 # PROVIDE: quota
11 # REQUIRE: mountcritremote
12 # BEFORE: DAEMON
14 . /etc/rc.subr
16 name="quota"
17 rcvar="enable_quotas"
18 start_cmd="quota_start"
19 stop_cmd="/usr/sbin/quotaoff -a"
21 quota_start()
23 if checkyesno check_quotas; then
24 echo -n 'Checking quotas:'
25 quotacheck -a
26 echo ' done.'
29 echo -n 'Enabling quotas:'
30 quotaon -a
31 echo ' done.'
34 load_rc_config $name
35 run_rc_command "$1"