Commit abfd88e2 authored by Michael Shigorin's avatar Michael Shigorin

06syslog: more durability

At least it shouldn't bail out when the anticipated file just isn't there...
parent 96e89d00
...@@ -5,9 +5,12 @@ ...@@ -5,9 +5,12 @@
# remote syslog if you do care for reliable data anyways) # remote syslog if you do care for reliable data anyways)
# credits: vvk@, thresh@ (2010) # credits: vvk@, thresh@ (2010)
sed -i \ CONFIG=/etc/syslog.conf
-e 's,/dev/tty12,/var/log/syslog/console,' \
-e 's,^.*/var/log/syslog/console$,#&,' \ [ ! -f "$CONFIG" ] || \
-e 's,-/var/log/,/var/log/,g' \ sed -i \
-e 's,/var/log/,-/var/log/,g' \ -e 's,/dev/tty12,/var/log/syslog/console,' \
/etc/syslog.conf -e 's,^.*/var/log/syslog/console$,#&,' \
-e 's,-/var/log/,/var/log/,g' \
-e 's,/var/log/,-/var/log/,g' \
"$CONFIG"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment