Add tip(1)'s emulation of cu(1) to tip's manual page.
[dragonfly.git] / etc / rc.d / quota
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
17 name="quota"
18 rcvar="enable_quotas"
19 start_cmd="quota_start"
20 stop_cmd="/usr/sbin/quotaoff -a"
21
22 quota_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
35 load_rc_config $name
36 run_rc_command "$1"