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

Fix and new settings for dsvpn

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-08-05 16:56:05 +02:00
parent 1d7bee7948
commit 58b9d0c45e
3 changed files with 30 additions and 4 deletions

View file

@ -45,11 +45,13 @@ start_instance() {
echo "${key}" > /tmp/${PROG_NAME}-${1}.key
key=""
if [ "$(uci -q get network.omrvpn)" != "" ]; then
if [ "$(uci -q get network.omrvpn)" != "" ] && [ "$(uci -q get network.omrvpn)" != "$dev" ]; then
uci -q set network.omrvpn.ifname=$dev
uci -q commit
fi
ip addr flush $dev
_log "starting ${PROG_NAME} ${1} instance $*"
procd_open_instance