Don't dmesg for VPS systems
This commit is contained in:
parent
67bfa29457
commit
33052124b5
@ -120,9 +120,11 @@ start() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create an 'after-boot' dmesg log
|
# Create an 'after-boot' dmesg log
|
||||||
touch /var/log/dmesg
|
if [ "${RC_SYS}" != "VPS" ] ; then
|
||||||
chmod 640 /var/log/dmesg
|
touch /var/log/dmesg
|
||||||
dmesg > /var/log/dmesg
|
chmod 640 /var/log/dmesg
|
||||||
|
dmesg > /var/log/dmesg
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for /etc/resolv.conf, and create if missing
|
# Check for /etc/resolv.conf, and create if missing
|
||||||
[ -f /etc/resolv.conf ] || touch /etc/resolv.conf 2>/dev/null
|
[ -f /etc/resolv.conf ] || touch /etc/resolv.conf 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user