summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-24 01:04:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-24 01:04:24 +0000
commit96a749f7febcf3e740c03fa79c567ab024ac0f2d (patch)
tree51b3778fef2627c960420b02b2e0d7e449137231
parentJust release the ap hold, don't re-associate (diff)
downloadbaselayout-96a749f7febcf3e740c03fa79c567ab024ac0f2d.tar.gz
baselayout-96a749f7febcf3e740c03fa79c567ab024ac0f2d.tar.bz2
baselayout-96a749f7febcf3e740c03fa79c567ab024ac0f2d.zip
Add RC_DMESG_LEVEL for people to control the dmesg console loglevel at boot time #142810 by Viktors Rotanovs.
svn path=/branches/baselayout-1_12/; revision=2208
-rw-r--r--etc/conf.d/rc5
-rwxr-xr-xsbin/rc2
2 files changed, 6 insertions, 1 deletions
diff --git a/etc/conf.d/rc b/etc/conf.d/rc
index ee41ba43..a73159e4 100644
--- a/etc/conf.d/rc
+++ b/etc/conf.d/rc
@@ -140,6 +140,11 @@ RC_DEVICE_TARBALL="no"
RC_SWAP_ERASE="no"
+# RC_DMESG_LEVEL sets the level at which logging of messages is done to the
+# console. See dmesg(8) for more info.
+
+RC_DMESG_LOGLEVEL="1"
+
diff --git a/sbin/rc b/sbin/rc
index b81f695d..edebfb8c 100755
--- a/sbin/rc
+++ b/sbin/rc
@@ -202,7 +202,7 @@ then
# Set the console loglevel to 1 for a cleaner boot
# the logger should anyhow dump the ring-0 buffer at start to the
# logs, and that with dmesg can be used to check for problems
- /bin/dmesg -n 1
+ ${RC_DMESG_LEVEL+/bin/dmesg -n ${RC_DMESG_LEVEL}}
echo
echo -e "${GOOD}Gentoo Linux${GENTOO_VERS}; ${BRACKET}http://www.gentoo.org/${NORMAL}"