packages/net/openntpd/files/ntpd.hotplug

11 lines
211 B
Plaintext
Raw Normal View History

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