summaryrefslogtreecommitdiff
path: root/sh.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-26 14:29:15 +0000
committerRoy Marples <roy@marples.name>2007-04-26 14:29:15 +0000
commite6a610fbc7139130e4523965a167288da3b2d27f (patch)
treeac2fe7b4563e13c7fe24421b33232153f636a5bf /sh.Linux
parent33052124b52e012b7620e79bc9e17537e271e50a (diff)
downloadopenrc-e6a610fbc7139130e4523965a167288da3b2d27f.tar.gz
openrc-e6a610fbc7139130e4523965a167288da3b2d27f.tar.bz2
openrc-e6a610fbc7139130e4523965a167288da3b2d27f.tar.xz
Don't dmesg for VPS systems
Diffstat (limited to 'sh.Linux')
-rwxr-xr-xsh.Linux/init.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index 6490c74..bbc5e2c 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -93,7 +93,9 @@ get_KV() {
# 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
-${RC_DMESG_LEVEL+/bin/dmesg -n ${RC_DMESG_LEVEL}}
+if [ -n "${RC_DMESG_LEVEL}" -a "${RC_SYS}" != "VPS" ] ; then
+ dmesg -n "${RC_DMESG_LEVEL}"
+fi
check_statedir /proc