packages/net/ntpd/files/ntpd.hotplug
Peter Wagner 2c1c2de230 Currently the hotplug script never starts because it assumes the wrong
path to the binary. Fix the path.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-04-13 18:14:27 +02:00

10 lines
204 B
Text

NAME=ntpd
CONFIG=/etc/ntp.conf
COMMAND=sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
killall ntpd
/etc/init.d/ntpd start
} &
}