mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Changes for RUTX support on 6.1 kernel
This commit is contained in:
parent
cd69bc6454
commit
84f0cf5782
2 changed files with 7 additions and 2 deletions
|
@ -351,7 +351,7 @@ uci -q delete network.loopback.ifname
|
|||
uci -q set network.loopback.device='lo'
|
||||
|
||||
local board=$(board_name)
|
||||
if [ "$board" = "teltonika,rutx" ] && [ -f /sbin/mnf_info ]; then
|
||||
if ([ "$board" = "teltonika,rutx" ] || [ "$board" = "teltonika,rutx12" ] || [ "$board" = "teltonika,rutx50" ]) && [ -f /sbin/mnf_info ]; then
|
||||
# Same part for RUTX12 and RUTX11, maybe other RUTX ?
|
||||
uci -q batch <<-EOF
|
||||
set network.modem1=interface
|
||||
|
@ -388,6 +388,11 @@ if [ "$board" = "teltonika,rutx" ] && [ -f /sbin/mnf_info ]; then
|
|||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
if [ "$(mnf_info -n)" = "RUTX5000XXXX" ]; then
|
||||
uci -q batch <<-EOF
|
||||
set network.modem1.device='/sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb2/2-1'
|
||||
EOF
|
||||
fi
|
||||
uci -q batch <<-EOF
|
||||
set network.wifi24=interface
|
||||
set network.wifi24.proto='none'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue