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 ..
|
json_select ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ucidef_set_timezone() {
|
||||||
|
local timezone="$1"
|
||||||
|
json_select_object system
|
||||||
|
json_add_string timezone "$timezone"
|
||||||
|
json_select ..
|
||||||
|
}
|
||||||
|
|
||||||
ucidef_set_wireless() {
|
ucidef_set_wireless() {
|
||||||
local band="$1"
|
local band="$1"
|
||||||
local ssid="$2"
|
local ssid="$2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user