aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-26 14:22:54 +0000
committerRoy Marples <roy@marples.name>2007-04-26 14:22:54 +0000
commit33052124b52e012b7620e79bc9e17537e271e50a (patch)
treea99e5bbe924da81fced7f0e116830e836583017f /init.d
parent67bfa29457eb06b80eb9e1c41075e0fed3d26f74 (diff)
Don't dmesg for VPS systems
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/bootmisc8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc
index b9c91385..db069b93 100755
--- a/init.d/bootmisc
+++ b/init.d/bootmisc
@@ -120,9 +120,11 @@ start() {
fi
# Create an 'after-boot' dmesg log
- touch /var/log/dmesg
- chmod 640 /var/log/dmesg
- dmesg > /var/log/dmesg
+ if [ "${RC_SYS}" != "VPS" ] ; then
+ touch /var/log/dmesg
+ chmod 640 /var/log/dmesg
+ dmesg > /var/log/dmesg
+ fi
# Check for /etc/resolv.conf, and create if missing
[ -f /etc/resolv.conf ] || touch /etc/resolv.conf 2>/dev/null