3 TIMEVALIDFILE="/var/state/dnsmasqsec"
5 [ "$ACTION" = stratum ] || exit 0
7 [ -f "$TIMEVALIDFILE" ] || {
8 echo "ntpd says time is valid" >$TIMEVALIDFILE
9 /etc/init.d/dnsmasq enabled && {
11 [ "$(readlink /proc/$pid/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $pid \
12 || /etc/init.d/dnsmasq restart