Skip to content

Commit

Permalink
base-files: add timezone to UCI during config_generate
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Oct 2, 2024
1 parent e428d79 commit 5071e84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/base-files/files/bin/config_generate
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5071e84

Please sign in to comment.