summaryrefslogtreecommitdiff
path: root/package/utils
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2017-02-06 15:26:49 -0700
committerJo-Philipp Wich <jo@mein.io>2017-12-13 14:59:18 +0100
commitaffff027984f877d6faad52eb2431f869d3af6b0 (patch)
tree580df7dc69926a16bfef6b7da176802b3c88adde /package/utils
parent7ccfa826eebfdc514e537ad25f75b76bb2554a60 (diff)
downloadmtk-20170518-affff027984f877d6faad52eb2431f869d3af6b0.zip
mtk-20170518-affff027984f877d6faad52eb2431f869d3af6b0.tar.gz
mtk-20170518-affff027984f877d6faad52eb2431f869d3af6b0.tar.bz2
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 <philipp@redfish-solutions.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [simplify] (cherry picked from commit 0b24850e97789818fadcbce4b8de4abc429fd9f2)
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/busybox/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 40bddd6..6463dc0 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