diff --git a/net/ntpd/files/ntpd.hotplug b/net/ntpd/files/ntpd.hotplug index 975be751ec..36cbe15976 100644 --- a/net/ntpd/files/ntpd.hotplug +++ b/net/ntpd/files/ntpd.hotplug @@ -1,10 +1,11 @@ +#!/bin/sh + NAME=ntpd -CONFIG=/etc/ntp.conf -COMMAND=/sbin/$NAME +COMMAND=/etc/init.d/$NAME [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { - [ -x $COMMAND ] && [ -r $CONFIG ] && { + $COMMAND enabled && { killall ntpd - /etc/init.d/ntpd start + $COMMAND start } & }