From 701475f791025cfb08e9b8cee35bb63ca772416f Mon Sep 17 00:00:00 2001 From: John Voltz Date: Thu, 24 Apr 2008 11:22:06 +0000 Subject: This patch renames the Atmel atstk1002 target board to a more generic atstk100x name. This to make it easier to add support for other CPU-boards than atstk1002. Submitted by Hans-Christian Egtvedt --- .../atstk100x/target_skeleton/etc/init.d/S08syslog | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog (limited to 'target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog') diff --git a/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog b/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog new file mode 100644 index 000000000..58b05925d --- /dev/null +++ b/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S08syslog @@ -0,0 +1,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 -- cgit v1.2.3