Deleted Added
full compact
dumpon (98184) dumpon (125341)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/dumpon 98184 2002-06-13 22:14:37Z gordon $
3# $FreeBSD: head/etc/rc.d/dumpon 125341 2004-02-02 19:05:06Z pjd $
4#
5
6# PROVIDE: dumpon
7# REQUIRE: initrandom
8# BEFORE: disks savecore
9# KEYWORD: FreeBSD
10
11. /etc/rc.subr
12
13name="dumpon"
14start_cmd="dumpon_start"
4#
5
6# PROVIDE: dumpon
7# REQUIRE: initrandom
8# BEFORE: disks savecore
9# KEYWORD: FreeBSD
10
11. /etc/rc.subr
12
13name="dumpon"
14start_cmd="dumpon_start"
15stop_cmd=":"
15stop_cmd="dumpon_stop"
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
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
31dumpon_stop()
32{
33 case ${dumpdev} in
34 [Nn][Oo] | '')
35 ;;
36 *)
37 /sbin/dumpon -v off
38 ;;
39 esac
40}
41
31load_rc_config $name
32run_rc_command "$1"
42load_rc_config $name
43run_rc_command "$1"