From abf7af17e95855e9fe2535729f7d83fce603463f Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 4 Jul 2011 21:03:37 +0200 Subject: busybox: only install S01logging if syslogd applet is enabled Signed-off-by: Peter Korsgaard --- package/busybox/busybox.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 4931b0744..509c3bb9f 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -123,8 +123,10 @@ endef endif define BUSYBOX_INSTALL_LOGGING_SCRIPT - $(INSTALL) -m 0755 -D package/busybox/S01logging \ - $(TARGET_DIR)/etc/init.d/S01logging + if grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \ + $(INSTALL) -m 0755 -D package/busybox/S01logging \ + $(TARGET_DIR)/etc/init.d/S01logging; \ + else rm -f $(TARGET_DIR)/etc/init.d/S01logging; fi endef # We do this here to avoid busting a modified .config in configure -- cgit v1.2.3