From: Philip Prindeville Date: Mon, 6 Feb 2017 22:26:49 +0000 (-0700) Subject: busybox: don't install NTP scripts if NTP isn't configured X-Git-Tag: v17.01.5~253 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=affff027984f877d6faad52eb2431f869d3af6b0;p=oweals%2Fopenwrt.git busybox: don't install NTP scripts if NTP isn't configured If you're using Chrony or NTPD you don't want the busybox NTP server as well. Make it's installation truly conditional. Signed-off-by: Philip Prindeville Signed-off-by: Felix Fietkau [simplify] (cherry picked from commit 0b24850e97789818fadcbce4b8de4abc429fd9f2) --- diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 40bddd6b58..6463dc0184 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox/Makefile @@ -118,9 +118,13 @@ endef define Package/busybox/install $(INSTALL_DIR) $(1)/etc/init.d $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +ifneq ($(CONFIG_BUSYBOX_CONFIG_CROND),) $(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron +endif +ifneq ($(CONFIG_BUSYBOX_CONFIG_NTPD),) $(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd $(INSTALL_BIN) ./files/ntpd-hotplug $(1)/usr/sbin/ntpd-hotplug +endif -rm -rf $(1)/lib64 endef