summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/dmesg
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/dmesg')
-rwxr-xr-xetc/rc.d/dmesg23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/rc.d/dmesg b/etc/rc.d/dmesg
new file mode 100755
index 0000000..41ad00f
--- /dev/null
+++ b/etc/rc.d/dmesg
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $NetBSD: dmesg,v 1.4 2000/07/26 00:11:49 lukem Exp $
+#
+
+# PROVIDE: dmesg
+# REQUIRE: mountcritremote
+
+. /etc/rc.subr
+
+name="dmesg"
+rcvar=$name
+start_cmd="do_dmesg"
+stop_cmd=":"
+
+do_dmesg()
+{
+ rm -f /var/run/dmesg.boot
+ dmesg $dmesg_flags > /var/run/dmesg.boot
+}
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud