summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog
diff options
context:
space:
mode:
Diffstat (limited to 'target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog')
-rwxr-xr-xtarget/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog18
1 files changed, 9 insertions, 9 deletions
diff --git a/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog
index 63951e023..58b05925d 100755
--- a/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog
+++ b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S08syslog
@@ -2,23 +2,23 @@
SYSLOGD=/sbin/syslogd
-echo -n "Starting syslogd:"
+echo -n "Starting syslogd: "
if [ ! -x "${SYSLOGD}" ]; then
- echo " missing"
+ echo "missing"
exit 1
fi
-if ${SYSLOGD} > /dev/null 2> /dev/null; then
- echo " done"
+if ${SYSLOGD}; then
+ echo "done"
else
- echo " failed"
+ echo "failed"
exit 1
fi
-echo -n "Log messages to syslog:"
-if echo 4 4 1 7 > /proc/sys/kernel/printk 2> /dev/null; then
- echo " done"
+echo -n "Log messages to syslog: "
+if echo 4 4 1 7 > /proc/sys/kernel/printk; then
+ echo "done"
else
- echo " failed"
+ echo "failed"
exit 1
fi