diff --git a/net/chrony/Makefile b/net/chrony/Makefile index da37c6f3b5..ccae548a2d 100644 --- a/net/chrony/Makefile +++ b/net/chrony/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=chrony PKG_VERSION:=4.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://chrony-project.org/releases/ diff --git a/net/chrony/files/chronyd.init b/net/chrony/files/chronyd.init index a043224ec5..7fee8a4074 100644 --- a/net/chrony/files/chronyd.init +++ b/net/chrony/files/chronyd.init @@ -10,7 +10,7 @@ INCLUDEFILE=/var/etc/chrony.d/10-uci.conf RTCDEVICE=/dev/rtc0 handle_source() { - local cfg=$1 sourcetype=$2 disabled hostname minpoll maxpoll iburst nts + local cfg=$1 sourcetype=$2 disabled hostname minpoll maxpoll maxsources iburst nts config_get_bool disabled "$cfg" disabled 0 [ "$disabled" = "1" ] && return @@ -19,12 +19,14 @@ handle_source() { [ -z "$hostname" ] && return config_get minpoll "$cfg" minpoll config_get maxpoll "$cfg" maxpoll + config_get maxsources "$cfg" maxsources config_get_bool iburst "$cfg" iburst 0 config_get_bool nts "$cfg" nts 0 echo $( echo $sourcetype $hostname [ -n "$minpoll" ] && echo minpoll $minpoll [ -n "$maxpoll" ] && echo maxpoll $maxpoll + [ -n "$maxsources" ] && echo maxsources $maxsources [ "$iburst" = "1" ] && echo iburst [ "$nts" = "1" ] && echo nts )