mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Fix max speed if USB used on RPI and default VPN MTU 1500
This commit is contained in:
parent
38c1644caf
commit
74cc5c3595
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,8 @@ omr_intf_del() {
|
|||
}
|
||||
omr_intf_set() {
|
||||
config_get multipath "$1" multipath
|
||||
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep raspberry)" ] && [ -n "$(echo $iface | grep usb)" ] && {
|
||||
config_get ifname "$1" ifname
|
||||
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep raspberry)" ] && [ -n "$(echo $ifname | grep usb)" ] && {
|
||||
uci -q set openmptcprouter.settings.scaling_min_freq=$(uci -q get openmptcprouter.settings.scaling_max_freq)
|
||||
}
|
||||
[ -z "$multipath" ] || [ "$multipath" = "off" ] && return
|
||||
|
|
|
@ -10,7 +10,6 @@ if [ "$(uci -q get network.omrvpn)" = "" ]; then
|
|||
set network.omrvpn.ip4table=vpn
|
||||
set network.omrvpn.multipath=off
|
||||
set network.omrvpn.leasetime=12h
|
||||
set network.omrvpn.mtu=1400
|
||||
commit network
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue