Bring RCNG in from 5.x and adjust config files and scripts accordingly.
[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.1 2003/07/24 06:35:37 dillon Exp $
5 #
6
7 # PROVIDE: dumpon
8 # REQUIRE: initrandom
9 # BEFORE: disks savecore
10 # KEYWORD: DragonFly FreeBSD
11
12 . /etc/rc.subr
13
14 name="dumpon"
15 start_cmd="dumpon_start"
16 stop_cmd=":"
17
18 dumpon_start()
19 {
20         # Enable dumpdev so that savecore can see it. Enable it
21         # early so a crash early in the boot process can be caught.
22         #
23         case ${dumpdev} in
24         [Nn][Oo] | '')
25                 ;;
26         *)
27                 /sbin/dumpon -v ${dumpdev}
28                 ;;
29         esac
30 }
31
32 load_rc_config $name
33 run_rc_command "$1"