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:
parent
fa085dcdca
commit
2a4e62a320
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue