dumpon revision 98184
198184Sgordon#!/bin/sh 298184Sgordon# 398184Sgordon# $FreeBSD: head/etc/rc.d/dumpon 98184 2002-06-13 22:14:37Z gordon $ 498184Sgordon# 598184Sgordon 698184Sgordon# PROVIDE: dumpon 798184Sgordon# REQUIRE: initrandom 898184Sgordon# BEFORE: disks savecore 998184Sgordon# KEYWORD: FreeBSD 1098184Sgordon 1198184Sgordon. /etc/rc.subr 1298184Sgordon 1398184Sgordonname="dumpon" 1498184Sgordonstart_cmd="dumpon_start" 1598184Sgordonstop_cmd=":" 1698184Sgordon 1798184Sgordondumpon_start() 1898184Sgordon{ 1998184Sgordon # Enable dumpdev so that savecore can see it. Enable it 2098184Sgordon # early so a crash early in the boot process can be caught. 2198184Sgordon # 2298184Sgordon case ${dumpdev} in 2398184Sgordon [Nn][Oo] | '') 2498184Sgordon ;; 2598184Sgordon *) 2698184Sgordon /sbin/dumpon -v ${dumpdev} 2798184Sgordon ;; 2898184Sgordon esac 2998184Sgordon} 3098184Sgordon 3198184Sgordonload_rc_config $name 3298184Sgordonrun_rc_command "$1" 33