mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
base-files: uci-defaults: allow setting default timezone
Introduce new uci-default functions: - ucidef_set_timezone TZ Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
a8271b0f82
commit
fa53a733ab
@ -642,6 +642,13 @@ ucidef_set_hostname() {
|
||||
json_select ..
|
||||
}
|
||||
|
||||
ucidef_set_timezone() {
|
||||
local timezone="$1"
|
||||
json_select_object system
|
||||
json_add_string timezone "$timezone"
|
||||
json_select ..
|
||||
}
|
||||
|
||||
ucidef_set_wireless() {
|
||||
local band="$1"
|
||||
local ssid="$2"
|
||||
|
Loading…
Reference in New Issue
Block a user