Raise WARNS to 6 and fix resulting warnings.
[dragonfly.git] / etc / rc.d / dumpon
blob4085c2f85e32962db3adb773f4444e052eb4133f
1 #!/bin/sh
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 $
7 # PROVIDE: dumpon
8 # REQUIRE: initrandom
9 # BEFORE: disks savecore
11 . /etc/rc.subr
13 name="dumpon"
14 start_cmd="dumpon_start"
15 stop_cmd=":"
17 dumpon_start()
19 # Enable dumpdev so that savecore can see it. Enable it
20 # early so a crash early in the boot process can be caught.
22 case ${dumpdev} in
23 [Nn][Oo] | '')
26 /sbin/dumpon -v ${dumpdev}
28 esac
31 load_rc_config $name
32 run_rc_command "$1"