mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add default settings for z8102ax 5G modems
This commit is contained in:
parent
4e53b25d0b
commit
4d12d6cb46
1 changed files with 14 additions and 0 deletions
|
@ -487,6 +487,20 @@ if [ "$board" = "z8102ax-128m" ] || [ "$board" = "z8102ax-64m" ] || [ "$board" =
|
||||||
set network.modem2.delegate='0'
|
set network.modem2.delegate='0'
|
||||||
set network.modem2.multipath='on'
|
set network.modem2.multipath='on'
|
||||||
set network.modem2.defaultroute='0'
|
set network.modem2.defaultroute='0'
|
||||||
|
EOF
|
||||||
|
if [ -e /sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.1 ]; then
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
set network.modem1.device='/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.1'
|
||||||
|
set network.modem2.device='/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2'
|
||||||
|
EOF
|
||||||
|
elif [ -e /sys/devices/platform/soc/11200000.usb/usb2/2-1/2-1.1 ]; then
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
set network.modem1.device='/sys/devices/platform/soc/11200000.usb/usb2/2-1/2-1.1'
|
||||||
|
set network.modem2.device='/sys/devices/platform/soc/11200000.usb/usb2/2-1/2-1.2'
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
uci -q batch <<-EOF
|
||||||
commit network
|
commit network
|
||||||
add_list firewall.@zone[1].network='modem1'
|
add_list firewall.@zone[1].network='modem1'
|
||||||
add_list firewall.@zone[1].network='modem2'
|
add_list firewall.@zone[1].network='modem2'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue