1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix glorytun init

This commit is contained in:
Ycarus 2018-06-06 17:52:22 +02:00
parent c29b7ff14b
commit 631f172c57
5 changed files with 12 additions and 3 deletions

View file

@ -42,12 +42,16 @@ start_instance() {
[ "${enable}" = "1" ] || return 1
[ "${proto}" = "tcp" ] || return 1
[ -n "${key}" ] || return 1
[ "${key}" != "secretkey" ] || return 1
[ -n "${port}" ] || return 1
[ -n "${dev}" ] || return 1
echo "${key}" > /tmp/${PROG_NAME}-${1}.key
key=""
if [ "$(uci -q get network.omrvpn)" != "" ]; then
uci -q set network.omrvpn.ifname=tun0
fi
_log "starting ${PROG_NAME} ${1} instance $*"
procd_open_instance