mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 02:40:19 +00:00
base-files: add timezone to UCI during config_generate
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
e428d7999a
commit
5071e842b9
@ -341,6 +341,11 @@ generate_static_system() {
|
||||
uci -q set "system.@system[-1].compat_version=1.0"
|
||||
fi
|
||||
|
||||
local timezone
|
||||
if json_get_var timezone timezone; then
|
||||
uci -q set "system.@system[-1].timezone=$timezone"
|
||||
fi
|
||||
|
||||
if json_is_a ntpserver array; then
|
||||
local keys key
|
||||
json_get_keys keys ntpserver
|
||||
|
Loading…
Reference in New Issue
Block a user