packages/net/openntpd/files/ntpd.hotplug
florian cac0900736 Add an hotplug script, so that if network is not up, time will be synchronised (#900)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5420 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-03 14:32:02 +00:00

11 lines
211 B
Plaintext

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