kumquat-buildroot/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog

25 lines
314 B
Plaintext
Raw Normal View History

2007-07-29 09:15:35 +02:00
#!/bin/sh
SYSLOGD=/sbin/syslogd
2007-08-17 15:02:52 +02:00
echo -n "Starting syslogd: "
2007-07-29 09:15:35 +02:00
if [ ! -x "${SYSLOGD}" ]; then
2007-08-17 15:02:52 +02:00
echo "missing"
2007-07-29 09:15:35 +02:00
exit 1
fi
2007-08-17 15:02:52 +02:00
if ${SYSLOGD}; then
echo "done"
2007-07-29 09:15:35 +02:00
else
2007-08-17 15:02:52 +02:00
echo "failed"
2007-07-29 09:15:35 +02:00
exit 1
fi
2007-08-17 15:02:52 +02:00
echo -n "Log messages to syslog: "
if echo 4 4 1 7 > /proc/sys/kernel/printk; then
echo "done"
2007-07-29 09:15:35 +02:00
else
2007-08-17 15:02:52 +02:00
echo "failed"
2007-07-29 09:15:35 +02:00
exit 1
fi