packages/net/ntpd/files/ntpd.hotplug
florian f6791a95a1 Add ntpd (#1065)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-27 19:21:05 +00:00

11 lines
209 B
Plaintext

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