summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/dmesg
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/dmesg')
-rwxr-xr-xetc/rc.d/dmesg12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/rc.d/dmesg b/etc/rc.d/dmesg
index 41ad00f..bea74c2 100755
--- a/etc/rc.d/dmesg
+++ b/etc/rc.d/dmesg
@@ -1,22 +1,26 @@
#!/bin/sh
#
-# $NetBSD: dmesg,v 1.4 2000/07/26 00:11:49 lukem Exp $
+# $NetBSD: dmesg,v 1.8 2002/03/22 04:33:58 thorpej Exp $
+# $FreeBSD$
#
# PROVIDE: dmesg
# REQUIRE: mountcritremote
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD Daemon
. /etc/rc.subr
name="dmesg"
-rcvar=$name
+rcvar=`set_rcvar`
+dmesg_file="/var/run/dmesg.boot"
start_cmd="do_dmesg"
stop_cmd=":"
do_dmesg()
{
- rm -f /var/run/dmesg.boot
- dmesg $dmesg_flags > /var/run/dmesg.boot
+ rm -f ${dmesg_file}
+ ( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
}
load_rc_config $name
OpenPOWER on IntegriCloud