diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-07-14 14:04:25 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-07-14 14:04:25 +0200 |
commit | 86a2e8f67174a817c1ea9ee90c4a8f75e6f100c6 (patch) | |
tree | a6efba176a38b8702544a8a1bdbd8ead3d2e6c82 /net | |
parent | 0c200218ec5c02ae3753e819c16a44ac8798e250 (diff) |
ntpd: add config include support
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ntpd/Makefile | 2 | ||||
-rw-r--r-- | net/ntpd/files/ntpd.init | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile index 6ac9e311d..ff82af24c 100644 --- a/net/ntpd/Makefile +++ b/net/ntpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntp PKG_VERSION:=4.2.8p15 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ diff --git a/net/ntpd/files/ntpd.init b/net/ntpd/files/ntpd.init index 0f0f57700..73ffb78d9 100644 --- a/net/ntpd/files/ntpd.init +++ b/net/ntpd/files/ntpd.init @@ -75,6 +75,20 @@ start_ntpd_instance() { emit "server $i iburst" done + if [ -d "/etc/ntpd.d" ]; then + local entry + for entry in "/etc/ntpd.d"/*.conf; do + emit "includefile ${entry}\n" + done + fi + + if [ -d "/tmp/ntpd.d" ]; then + local entry + for entry in "/tmp/ntpd.d"/*.conf; do + emit "includefile ${entry}\n" + done + fi + mkdir -p /var/lib/ntp chown -R ntp:ntp /var/lib/ntp |