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:
parent
90dde71ffa
commit
fce351449d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue