summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit13
1 files changed, 6 insertions, 7 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1839280..b89d62f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -34,13 +34,12 @@ fi
# start up our mini logger until syslog takes over
/sbin/minilogd
-# anything more serious than KERN_WARNING goes to the console
-# 'verbose' cmdline parameter enables more messages
-if [[ -n "$verbose" ]]; then
- /bin/dmesg -n 8
-else
- /bin/dmesg -n 3
-fi
+# 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