busybox: only install S01logging if syslogd applet is enabled

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-07-04 21:03:37 +02:00
parent ad501b6634
commit abf7af17e9

View File

@ -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