Browse Source

chrony: fix uci NTP access configuration

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 <mlichvar0@gmail.com>
lilik-openwrt-22.03
Miroslav Lichvar 3 years ago
parent
commit
6562287c49
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      net/chrony/Makefile
  2. +1
    -0
      net/chrony/files/chrony.hotplug

+ 1
- 1
net/chrony/Makefile View 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/


+ 1
- 0
net/chrony/files/chrony.hotplug View File

@ -17,6 +17,7 @@ fi
[ "$ACTION" = ifup ] || exit 0
. /lib/functions.sh
. /lib/functions/network.sh
. /etc/init.d/chronyd
config_load chrony


Loading…
Cancel
Save