mirror of
https://github.com/openwrt/packages.git
synced 2025-02-22 15:26:15 +00:00
11 lines
154 B
Bash
11 lines
154 B
Bash
#!/bin/sh
|
|
|
|
NAME=ntpd
|
|
COMMAND=/etc/init.d/$NAME
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
$COMMAND enabled && {
|
|
$COMMAND restart
|
|
}
|
|
}
|