mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 08:04:10 +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"
|
uci -q set "system.@system[-1].compat_version=1.0"
|
||||||
fi
|
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
|
if json_is_a ntpserver array; then
|
||||||
local keys key
|
local keys key
|
||||||
json_get_keys keys ntpserver
|
json_get_keys keys ntpserver
|
||||||
|
Loading…
x
Reference in New Issue
Block a user