toolchain/binutils: refresh patches
[openwrt/openwrt.git] / package / network / services / dnsmasq / files / dnsmasqsec.hotplug
1 #!/bin/sh
2
3 . /lib/functions/procd.sh
4
5 TIMEVALIDFILE="/var/state/dnsmasqsec"
6
7 [ "$ACTION" = stratum ] || exit 0
8
9 [ -f "$TIMEVALIDFILE" ] || {
10 echo "ntpd says time is valid" >$TIMEVALIDFILE
11 /etc/init.d/dnsmasq enabled && {
12 procd_send_signal dnsmasq '*' INT
13 }
14 }