1
0

dnsmasqsec.hotplug 256 B

1234567891011121314
  1. #!/bin/sh
  2. . /lib/functions/procd.sh
  3. TIMEVALIDFILE="/var/state/dnsmasqsec"
  4. [ "$ACTION" = stratum ] || exit 0
  5. [ -f "$TIMEVALIDFILE" ] || {
  6. echo "ntpd says time is valid" >$TIMEVALIDFILE
  7. /etc/init.d/dnsmasq enabled && {
  8. procd_send_signal dnsmasq
  9. }
  10. }