mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Get omr6in4 from VPS
This commit is contained in:
parent
b23693017e
commit
c019085622
1 changed files with 10 additions and 0 deletions
|
@ -850,6 +850,16 @@ _set_config_from_vps() {
|
|||
EOF
|
||||
fi
|
||||
|
||||
omr6in4_vps_localip="$(echo "$vps_config" | jsonfilter -q -e '@.6in4.localip')"
|
||||
omr6in4_vps_remoteip="$(echo "$vps_config" | jsonfilter -q -e '@.6in4.remoteip')"
|
||||
if ([ -n "$omr6in4_vps_localip" ] && [ "$omr6in4_vps_localip" != "$(uci -q get network.omr6in4.gateway)" ]) || ([ -n "$omr6in4_vps_remoteip" ] && [ "$omr6in4_vps_remoteip" != "$(uci -q get network.omr6in4.ip6addr)" ]); then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.omr6in4.ip6addr=$omr6in4_vps_remoteip
|
||||
set network.omr6in4.gateway=$omr6in4_vps_localip
|
||||
commit network
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Get VPS iperf config
|
||||
iperf_user="$(echo "$vps_config" | jsonfilter -q -e '@.iperf.user')"
|
||||
iperf_pass="$(echo "$vps_config" | jsonfilter -q -e '@.iperf.password')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue