dumpon revision 126744
1263105Sgjb#!/bin/sh 2263105Sgjb# 3263105Sgjb# $FreeBSD: head/etc/rc.d/dumpon 126744 2004-03-08 12:25:05Z pjd $ 4263105Sgjb# 5263105Sgjb 6263105Sgjb# PROVIDE: dumpon 7263105Sgjb# REQUIRE: initrandom 8263105Sgjb# BEFORE: disks savecore 9263105Sgjb# KEYWORD: FreeBSD nojail 10263105Sgjb 11263105Sgjb. /etc/rc.subr 12263105Sgjb 13263105Sgjbname="dumpon" 14263105Sgjbstart_cmd="dumpon_start" 15263105Sgjbstop_cmd="dumpon_stop" 16263105Sgjb 17263105Sgjbdumpon_start() 18263105Sgjb{ 19263105Sgjb # Enable dumpdev so that savecore can see it. Enable it 20263105Sgjb # early so a crash early in the boot process can be caught. 21263105Sgjb # 22263105Sgjb case ${dumpdev} in 23263105Sgjb [Nn][Oo] | '') 24263105Sgjb ;; 25263105Sgjb *) 26263105Sgjb /sbin/dumpon -v ${dumpdev} 27263105Sgjb ;; 28263105Sgjb esac 29263105Sgjb} 30263105Sgjb 31263105Sgjbdumpon_stop() 32263105Sgjb{ 33263105Sgjb case ${dumpdev} in 34263105Sgjb [Nn][Oo] | '') 35263105Sgjb ;; 36263105Sgjb *) 37263105Sgjb /sbin/dumpon -v off 38263105Sgjb ;; 39263105Sgjb esac 40263105Sgjb} 41263105Sgjb 42263105Sgjbload_rc_config $name 43263105Sgjbrun_rc_command "$1" 44263105Sgjb