]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/openslug-init/openslug-init-0.10/initscripts/syslog.file
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / openslug-init / openslug-init-0.10 / initscripts / syslog.file
1 #!/bin/sh
2 #
3 # Invoke the syslog startup if the configuration
4 # uses 'file' (and, optionally, 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) :;;
13         file)   doit=1;;
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