rc.d: rename vfs_accounting to vfs_quota
[dragonfly.git] / etc / rc.d / dumpon
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/dumpon,v 1.1 2002/06/13 22:14:36 gordon Exp $
4 # $DragonFly: src/etc/rc.d/dumpon,v 1.3 2005/11/19 21:47:32 swildner Exp $
5 #
6
7 # PROVIDE: dumpon
8 # REQUIRE: initrandom
9 # BEFORE: disks savecore
10
11 . /etc/rc.subr
12
13 name="dumpon"
14 start_cmd="dumpon_start"
15 stop_cmd=":"
16
17 dumpon_start()
18 {
19         # Enable dumpdev so that savecore can see it. Enable it
20         # early so a crash early in the boot process can be caught.
21         #
22         case ${dumpdev} in
23         [Nn][Oo] | '')
24                 ;;
25         *)
26                 /sbin/dumpon -v ${dumpdev}
27                 ;;
28         esac
29 }
30
31 load_rc_config $name
32 run_rc_command "$1"