mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Force none or dhcp for glorytun
This commit is contained in:
parent
a7a3a7ff11
commit
2fe5e8911b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue