0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 03:28:07 +00:00
packages/net/frp/files/frpc.uci-defaults
Van Waholtz 30d8431b71 frpc: add anonymous proxy config support
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
2022-02-23 22:31:45 -08:00

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