1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Force none or dhcp for glorytun

This commit is contained in:
Ycarus 2019-04-27 15:20:35 +02:00
parent a7a3a7ff11
commit 2fe5e8911b

View file

@ -175,7 +175,7 @@ _get_vps_config() {
EOF
glorytun_change=1
fi
if [ "$(uci -q get network.omrvpn.proto)" = "" ]; then
if [ "$(uci -q get network.omrvpn.proto)" != 'none' ]; then
uci -q batch <<-EOF >/dev/null
set network.omrvpn.proto='none'
commit network
@ -189,7 +189,7 @@ _get_vps_config() {
EOF
glorytun_change=1
fi
if [ "$(uci -q get network.omrvpn.proto)" != "" ]; then
if [ "$(uci -q get network.omrvpn.proto)" != 'dhcp' ]; then
uci -q batch <<-EOF >/dev/null
set network.omrvpn.proto='dhcp'
commit network