2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: dmesg,v 1.8 2002/03/22 04:33:58 thorpej Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: dmesg
|
|
|
|
# REQUIRE: mountcritremote
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: DAEMON
|
2004-03-08 12:25:05 +00:00
|
|
|
# KEYWORD: FreeBSD Daemon nojail
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="dmesg"
|
2002-06-13 22:14:37 +00:00
|
|
|
rcvar=`set_rcvar`
|
|
|
|
dmesg_file="/var/run/dmesg.boot"
|
2001-06-16 07:16:14 +00:00
|
|
|
start_cmd="do_dmesg"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
do_dmesg()
|
|
|
|
{
|
2002-06-13 22:14:37 +00:00
|
|
|
rm -f ${dmesg_file}
|
|
|
|
( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
|
2001-06-16 07:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|