summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSebastian Kemper <sebastian_ml@gmx.net>2019-11-28 20:22:55 +0100
committertripolar <tripolar@users.noreply.github.com>2019-11-28 22:27:03 +0100
commit18335dc4241a490ae9e0100355492da0c5012e4b (patch)
tree5c71d4d062119bcb212a721d428592c5ed5cbfa6 /net
parent68e4f49373729368b5ed7e8f8c7379f290690268 (diff)
ntpd: create config_file directory
ntpd's configuration is stored in /var/etc, but the init script doesn't create this directory. To be fair this folder is used by other packages as well, for instance dnsmasq. Still, it's better not to rely on other packages to create it. Fixes: #10636 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Diffstat (limited to 'net')
-rw-r--r--net/ntpd/Makefile2
-rw-r--r--net/ntpd/files/ntpd.init2
2 files changed, 3 insertions, 1 deletions
diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile
index a82e27010..aa16dbf98 100644
--- a/net/ntpd/Makefile
+++ b/net/ntpd/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ntp
PKG_VERSION:=4.2.8p13
-PKG_RELEASE:=3
+PKG_RELEASE:=4
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 6e73489d4..0f0f57700 100644
--- a/net/ntpd/files/ntpd.init
+++ b/net/ntpd/files/ntpd.init
@@ -40,6 +40,8 @@ start_ntpd_instance() {
# since some of them might be dynamic interfaces (like IPsec
# tunnels) which aren't known by ubus.
+ mkdir -p "$(dirname "$config_file")"
+
trunc
emit "driftfile /var/lib/ntp/ntp.drift\n"