[openwrt/openwrt] base-files: add timezone to UCI during config_generate
LEDE Commits
lede-commits at lists.infradead.org
Wed Oct 2 06:48:15 PDT 2024
blogic pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5071e842b99b1fe96f7364693eeb4850a4878e51
commit 5071e842b99b1fe96f7364693eeb4850a4878e51
Author: John Crispin <john at phrozen.org>
AuthorDate: Sat Sep 21 16:19:24 2024 +0200
base-files: add timezone to UCI during config_generate
Signed-off-by: John Crispin <john at phrozen.org>
---
package/base-files/files/bin/config_generate | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index be21d0079a..9d1968ce20 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -341,6 +341,11 @@ generate_static_system() {
uci -q set "system. at system[-1].compat_version=1.0"
fi
+ local timezone
+ if json_get_var timezone timezone; then
+ uci -q set "system. at system[-1].timezone=$timezone"
+ fi
+
if json_is_a ntpserver array; then
local keys key
json_get_keys keys ntpserver
More information about the lede-commits
mailing list