aboutsummaryrefslogtreecommitdiff
path: root/net/frp/files/frpc.uci-defaults
blob: 4883a2d8c6a1e8cf9eda4ee6123662f6034f9200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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