merge of 8eaefa4f638dc67e29fb59fca3c6a98e4049eb09
[vuplus_openembedded] / packages / openprotium-init / files / initscripts / syslog.buffer
1 #!/bin/sh
2 #
3 # Invoke the syslog startup if the configuration
4 # uses (only) 'buffer' as the DESTINATION
5 DESTINATION=
6 test -f /etc/syslog.conf && . /etc/syslog.conf
7 doit=
8
9 for d in $DESTINATION
10 do
11         case "$d" in
12         buffer) doit=1;;
13         file)   exit 0;;
14         remote) exit 0;;
15         *)      echo "/etc/syslog.conf: $d: unknown destination" >&2
16                 exit 1;;
17         esac
18 done
19
20 test -n "$doit" -a -x /etc/init.d/syslog &&
21         exec /etc/init.d/syslog "$@"
22
23 exit 0