ntpd.hotplug 205 B

12345678910
  1. NAME=ntpd
  2. CONFIG=/etc/ntp.conf
  3. COMMAND=/sbin/$NAME
  4. [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
  5. [ -x $COMMAND ] && [ -r $CONFIG ] && {
  6. killall ntpd
  7. /etc/init.d/ntpd start
  8. } &
  9. }