mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ntpdate: use uci configured servers instead of static list
If we're going to have a list of ntp servers, we should at least respect them. Fallback to the original static list if no configured servers are found. Signed-off-by: Karl Palsson <karlp@etactica.com>
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
START=60
|
||||
|
||||
STEP_SERVERS="0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org"
|
||||
DEFAULT_SERVERS="0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org"
|
||||
CFG_SERVERS=$(uci -q get system.ntp.server)
|
||||
STEP_SERVERS=${CFG_SERVERS:-$DEFAULT_SERVERS}
|
||||
TIMEOUT="2" # in seconds
|
||||
|
||||
start() {
|
||||
|
||||
Reference in New Issue
Block a user