summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atngw100-expanded/target_skeleton/etc/init.d/S08syslog
blob: 58b05925db6bab74ac5880d6c4bb7b5322ae0f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

SYSLOGD=/sbin/syslogd

echo -n "Starting syslogd: "
if [ ! -x "${SYSLOGD}" ]; then
	echo "missing"
	exit 1
fi

if ${SYSLOGD}; then
	echo "done"
else
	echo "failed"
	exit 1
fi

echo -n "Log messages to syslog: "
if echo 4 4 1 7 > /proc/sys/kernel/printk; then
	echo "done"
else
	echo "failed"
	exit 1
fi