You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
205 B

  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. }