mirror of
https://github.com/openwrt/packages.git
synced 2025-02-12 03:28:07 +00:00
20 lines
290 B
Bash
20 lines
290 B
Bash
#!/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
|