mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 05:03:56 +08:00
update 2026-10-29 18:46:39
This commit is contained in:
1 parent
e2f86e09f4
commit
95f76f26d3
5034 files changed
+2043234
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
upgrade() {
|
||||
local section=$1
|
||||
local name
|
||||
[ "$section" != "common" ] || return 0
|
||||
config_get name $section name
|
||||
if [ -z "$name" ]; then
|
||||
uci_set frpc "$section" name "$section"
|
||||
uci_commit frpc
|
||||
fi
|
||||
}
|
||||
|
||||
config_load frpc
|
||||
config_foreach upgrade conf
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user