diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-11 13:56:39 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-11 13:56:39 +0100 |
commit | b782769986db676b49d10b22e20f2b8184448fc0 (patch) | |
tree | efd24832508a9e98d40db89985d8fac6c8409e96 /package/busybox/files | |
parent | 2ab43784187e124e517e361e342e3b482e99d6d0 (diff) |
add adk-test-tools package
- scripts to shutdown qemu from linux
- only start klogd when printk is available
Diffstat (limited to 'package/busybox/files')
-rw-r--r-- | package/busybox/files/syslog.init | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init index 7a84815a6..7a85430ca 100644 --- a/package/busybox/files/syslog.init +++ b/package/busybox/files/syslog.init @@ -11,10 +11,14 @@ autostart) ;; start) /sbin/syslogd $syslogd_flags - /sbin/klogd + if [ -f /proc/sys/kernel/printk ];then + /sbin/klogd + fi ;; stop) - kill $(pgrep -f /sbin/klogd) + if [ -f /proc/sys/kernel/printk ];then + kill $(pgrep -f /sbin/klogd) + fi kill $(pgrep -f /sbin/syslogd) ;; restart) |