chrony: fix uci NTP access configuration
authorMiroslav Lichvar <redacted>
Sat, 19 Jun 2021 11:14:05 +0000 (13:14 +0200)
committerMiroslav Lichvar <redacted>
Sat, 19 Jun 2021 11:30:09 +0000 (13:30 +0200)
The chrony interface hotplug script reuses the handle_allow function
from the init script to allow NTP access on interfaces specified in uci.
The function requires /lib/functions/network.sh. Include the file in the
hotplug script to make the function work as expected.

Signed-off-by: Miroslav Lichvar <redacted>
net/chrony/Makefile
net/chrony/files/chrony.hotplug

index f2f01fef49b2d46ab4340030afc0d06e60034b32..eef8dad2f937b3d15ee2feb15219ef36edb9cadb 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=chrony
 PKG_VERSION:=4.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.tuxfamily.org/chrony/
index eb44c28ee3b7542aa98977233f5a281092167608..208343916a0e737bbff0b7c5d2faff1683ac52d9 100644 (file)
@@ -17,6 +17,7 @@ fi
 [ "$ACTION" = ifup ] || exit 0
 
 . /lib/functions.sh
+. /lib/functions/network.sh
 . /etc/init.d/chronyd
 
 config_load chrony
git clone https://git.99rst.org/PROJECT