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
|
2005-01-16 03:12:03 +00:00
|
|
|
# REQUIRE: mountcritremote cleanvar
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: DAEMON
|
2004-10-07 13:55:26 +00:00
|
|
|
# KEYWORD: 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"
|