build-vm: 06syslog should differ from VE's one
There's no need to disable console as it's emulated too, and it still can be helpful or just convenient.
This commit is contained in:
parent
11d4f4062e
commit
b24bd31f45
@ -1,16 +1,12 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# tweak syslog configuration to:
|
# tweak syslog configuration to avoid hard sync logging (one is better off
|
||||||
# - avoid logging to a nonexistent tty;
|
# doing remote syslog if you do care for reliable data anyways)
|
||||||
# - avoid hard sync logging (one is better off doing
|
|
||||||
# remote syslog if you do care for reliable data anyways)
|
|
||||||
# credits: vvk@, thresh@ (2010)
|
# credits: vvk@, thresh@ (2010)
|
||||||
|
|
||||||
CONFIG=/etc/syslog.conf
|
CONFIG=/etc/syslog.conf
|
||||||
|
|
||||||
[ ! -f "$CONFIG" ] || \
|
[ ! -f "$CONFIG" ] || \
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's,/dev/tty12,/var/log/syslog/console,' \
|
|
||||||
-e 's,^.*/var/log/syslog/console$,#&,' \
|
|
||||||
-e 's,-/var/log/,/var/log/,g' \
|
-e 's,-/var/log/,/var/log/,g' \
|
||||||
-e 's,/var/log/,-/var/log/,g' \
|
-e 's,/var/log/,-/var/log/,g' \
|
||||||
"$CONFIG"
|
"$CONFIG"
|
||||||
|
Loading…
Reference in New Issue
Block a user