mtree: No longer create /usr/libdata/msdosfs.
[dragonfly.git] / etc / rc.d / dumpon
CommitLineData
9c600e7d
MD
1#!/bin/sh
2#
3# $FreeBSD: src/etc/rc.d/dumpon,v 1.1 2002/06/13 22:14:36 gordon Exp $
696a5717 4# $DragonFly: src/etc/rc.d/dumpon,v 1.3 2005/11/19 21:47:32 swildner Exp $
9c600e7d
MD
5#
6
7# PROVIDE: dumpon
8# REQUIRE: initrandom
9# BEFORE: disks savecore
9c600e7d
MD
10
11. /etc/rc.subr
12
13name="dumpon"
14start_cmd="dumpon_start"
15stop_cmd=":"
16
17dumpon_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
31load_rc_config $name
32run_rc_command "$1"