2001-06-16 09:16:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-14 00:14:37 +02:00
|
|
|
# $FreeBSD$
|
2001-06-16 09:16:14 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: dmesg
|
2012-09-11 07:04:59 +02:00
|
|
|
# REQUIRE: mountcritremote FILESYSTEMS
|
2002-06-14 00:14:37 +02:00
|
|
|
# BEFORE: DAEMON
|
2007-12-08 23:40:31 +01:00
|
|
|
# KEYWORD: nojail
|
2001-06-16 09:16:14 +02:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="dmesg"
|
2012-01-14 03:18:41 +01:00
|
|
|
rcvar="dmesg_enable"
|
2002-06-14 00:14:37 +02:00
|
|
|
dmesg_file="/var/run/dmesg.boot"
|
2001-06-16 09:16:14 +02:00
|
|
|
start_cmd="do_dmesg"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
do_dmesg()
|
|
|
|
{
|
2002-06-14 00:14:37 +02:00
|
|
|
rm -f ${dmesg_file}
|
|
|
|
( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
|
2001-06-16 09:16:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|