11 lines
209 B
Plaintext
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
|
||
|
} &
|
||
|
}
|