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

Use omrvpn as unmanaged when glorytun doesn't use dhcp

This commit is contained in:
Ycarus 2019-03-26 18:57:47 +01:00
parent 90dde71ffa
commit fce351449d

View file

@ -207,7 +207,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='none'
commit network
@ -221,7 +221,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