From: Eric Luehrsen Date: Fri, 23 Dec 2016 07:37:21 +0000 (-0500) Subject: unbound: improve NTP hotplug behavior when Unbound is disabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2f923ec2814fbde7a3a01f0de339bd808540066c;p=feed%2Fpackages.git unbound: improve NTP hotplug behavior when Unbound is disabled If Unbound was disabled and at later time enabled, then it would operate in DNSSEC less-secure mode. When NTP hotplug was called, the timestamp file was not updated. This was found testing Unbound vs other tools (bind, dnsmasq). Signed-off-by: Eric Luehrsen --- diff --git a/net/unbound/files/unbound.ntpd b/net/unbound/files/unbound.ntpd index 2f312d90cf..5c7191656d 100755 --- a/net/unbound/files/unbound.ntpd +++ b/net/unbound/files/unbound.ntpd @@ -17,11 +17,9 @@ ############################################################################## -if [ "$ACTION" = stratum -a ! -f "$UNBOUND_TIMEFILE" ] \ - && /etc/init.d/unbound enabled ; then - # +if [ "$ACTION" = stratum -a ! -f "$UNBOUND_TIMEFILE" ] ; then echo "ntpd: $( date )" > $UNBOUND_TIMEFILE - /etc/init.d/unbound restart + /etc/init.d/unbound enabled && /etc/init.d/unbound restart fi ##############################################################################