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

Remove static ip of Glorytun if already set

This commit is contained in:
Ycarus 2018-06-12 22:43:12 +02:00
parent fa085dcdca
commit 2a4e62a320

View file

@ -15,6 +15,13 @@ if [ "$(uci -q get network.omrvpn)" = "" ]; then
EOF
fi
if [ "$(uci -q get glorytun.vpn.localip)" = "10.0.0.2" ]; then
uci -q batch <<-EOF >/dev/null
delete glorytun.vpn.localip
delete glorytun.vpn.remoteip
EOF
fi
if [ "$(uci -q get openvpn.omr)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set openvpn.omr=openvpn