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 | |
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')
-rw-r--r-- | package/busybox/Makefile | 2 | ||||
-rw-r--r-- | package/busybox/files/syslog.init | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile index 1fe63ff0a..c1923708e 100644 --- a/package/busybox/Makefile +++ b/package/busybox/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= busybox PKG_VERSION:= 1.21.1 -PKG_RELEASE:= 4 +PKG_RELEASE:= 5 PKG_MD5SUM:= 795394f83903b5eec6567d51eebb417e PKG_DESCR:= core utilities for embedded systems PKG_SECTION:= base 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) |