Skip to content
Snippets Groups Projects
Commit c8ac0bf2 authored by John Crispin's avatar John Crispin Committed by Andreas Gnau
Browse files

base-files: add timezone to UCI during config_generate


Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
(cherry picked from commit 5071e842b99b1fe96f7364693eeb4850a4878e51)
parent 390c733b
Branches
No related tags found
1 merge request!693base-files: Backport board.json enhancements
...@@ -339,6 +339,11 @@ generate_static_system() { ...@@ -339,6 +339,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment