TIMEVALIDFILE="/var/state/dnsmasqsec"

[ "$ACTION" = "stratum" ] || exit 0

[ -f "$TIMEVALIDFILE" ] || {
	echo "ntpd says time is valid" >$TIMEVALIDFILE
	/etc/init.d/dnsmasq enabled && {
		initscript=dnsmasq
		. /lib/functions/procd.sh
		procd_send_signal dnsmasq '*' INT
	}
}
