From d6da8e8c48feb8faf9287fc86fbbf0890c37a87c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 10 Oct 2008 08:37:21 +0000 Subject: sysinit is now a real runlevel that handles things like udev, dmesg and mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version. --- init.d/dmesg.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 init.d/dmesg.in (limited to 'init.d/dmesg.in') diff --git a/init.d/dmesg.in b/init.d/dmesg.in new file mode 100644 index 00000000..6aad0e28 --- /dev/null +++ b/init.d/dmesg.in @@ -0,0 +1,17 @@ +#!@PREFIX@/sbin/runscript +# Copyright 2007-2008 Roy Marples +# All rights reserved. Released under the 2-clause BSD license. + +description="Set the dmesg level for a cleaner boot" + +depend() +{ + before dev modules +} + +start() +{ + if [ -n "${dmesg_level}" ]; then + dmesg -n"${dmesg_level}" + fi +} -- cgit v1.2.3