gluon-core: add support for NTP server configuration
This commit is contained in:
parent
e57e88ee6c
commit
e03fb9f8eb
12
package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers
Executable file
12
package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -n '@ntp_servers@' ] || exit 0
|
||||
|
||||
|
||||
uci delete system.ntp.server
|
||||
|
||||
for server in @ntp_servers@; do
|
||||
uci add_list system.ntp.server="$server"
|
||||
done
|
||||
|
||||
uci commit system
|
Loading…
Reference in New Issue
Block a user