mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 10:03:56 +08:00
update 2026-09-06 16:17:35
This commit is contained in:
1 parent
35c80a77bc
commit
51ed2622f8
26 files changed
+220
-223
No files matched your search
@@ -40,9 +40,10 @@ config_n_get() {
|
||||
echo "${ret:=$3}"
|
||||
}
|
||||
|
||||
config_t_set() {
|
||||
config_t_get() {
|
||||
local index=${4:-0}
|
||||
local ret=$(uci -q set "${CONFIG}.@${1}[${index}].${2}=${3}" 2>/dev/null)
|
||||
local ret=$(uci -q get "${CONFIG}.@${1}[${index}].${2}" 2>/dev/null)
|
||||
echo "${ret:=${3}}"
|
||||
}
|
||||
|
||||
first_type() {
|
||||
|
||||
Reference in new issue
Block a user