Add an hotplug script, so that if network is not up, time will be synchronised (...
[openwrt/svn-archive/archive.git] / net / openntpd / files / ntpd.hotplug
1 NAME=ntpd
2 CONFIG=/etc/$NAME.conf
3 COMMAND=/usr/sbin/$NAME
4
5 [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
6 [ -x $COMMAND ] && [ -r $CONFIG ] && {
7 killall ntpd
8 /etc/init.d/ntpd start
9 } &
10 }