[arch-projects] [initscripts][PATCH] rc.sysinit: kill off VERBOSE= parameter

Dave Reisner d at falconindy.com
Sat Jun 4 14:22:33 EDT 2011


Upstream already supports this via the loglevel= parameter on the kernel
cmdline, so we should support using this instead of our own homegrown
solution.

Signed-off-by: Dave Reisner <d at falconindy.com>
---
This conflicts with one of the other patches I sent 2 days ago, but I guess I'd
rather see this merged than the whitespace cleanup (can always cleanup the
cleanup). Say goodnight to our short lived VERBOSE friend.

d


 rc.conf    |    2 --
 rc.sysinit |    7 -------
 2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/rc.conf b/rc.conf
index 26cd695..04a93ba 100644
--- a/rc.conf
+++ b/rc.conf
@@ -17,7 +17,6 @@
 # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
 # CONSOLEMAP: found in /usr/share/kbd/consoletrans
 # USECOLOR: use ANSI color sequences in startup messages
-# VERBOSE: Verbose level (from 1 to 8). man 3 syslog for level info
 #
 LOCALE="en_US.UTF-8"
 DAEMON_LOCALE="no"
@@ -27,7 +26,6 @@ KEYMAP="us"
 CONSOLEFONT=
 CONSOLEMAP=
 USECOLOR="yes"
-VERBOSE="3"
 
 # -----------------------------------------------------------------------
 # HARDWARE
diff --git a/rc.sysinit b/rc.sysinit
index c87e3dc..ee77959 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -43,13 +43,6 @@ status "Mounting Root Read-Only" /bin/mount -n -o remount,ro /
 /sbin/minilogd
 /sbin/bootlogd -p /run/bootlogd.pid
 
-# Set console verbosity
-for cmdarg in $(< /proc/cmdline); do
-        [[ "$cmdarg" == verbose ]] && VERBOSE=8 && break
-        [[ "$cmdarg" =~ verbose=[1-8] ]] && VERBOSE=${BASH_REMATCH[0]-8} && break
-done
-/bin/dmesg -n ${VERBOSE:-3}
-
 HWCLOCK_PARAMS="--hctosys"
 case $HARDWARECLOCK in
 	UTC) HWCLOCK_PARAMS+=" --utc";;
-- 
1.7.5.4



More information about the arch-projects mailing list