Skip to content

Commit

Permalink
Changes for RUTX support on 6.1 kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Oct 3, 2023
1 parent cd69bc6 commit 84f0cf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mptcp/files/usr/share/omr/post-tracking.d/050-rutx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# This script set lights on RUTX device

if [ -n "$(grep RUTX /etc/board.json)" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
if [ -n "$(grep RUTX /etc/board.json)" ] && [ -z "$(grep RUTX50 /etc/board.json)" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
if [ "$OMR_TRACKER_DEVICE" = "wwan0" ]; then
modemdata=$(omr-modemmanager '/sys/devices/platform/soc/60f8800.usb2/6000000.dwc3/xhci-hcd.1.auto/usb3/3-1' all)
gen=$(echo $modemdata | cut -d ';' -f 5 | tr -d '\n')
Expand Down
7 changes: 6 additions & 1 deletion openmptcprouter/files/etc/uci-defaults/1920-omr-network
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 84f0cf5

Please sign in to comment.