mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ramips: add Huasifei MT7621 DTU network and wwan cpe settings
This commit is contained in:
parent
912cb4bdc1
commit
26a04de18b
@ -859,7 +859,7 @@ define Device/huasifei_mt7621dtu
|
||||
DEVICE_MODEL := MT7621 DTU
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
|
||||
kmod-usb3 kmod-usb-net-cdc-mbim kmod-usb-net-qmi-wwan \
|
||||
kmod-usb-serial-option luci-proto-qmi
|
||||
kmod-usb-serial-option luci-proto-qmi sendat
|
||||
endef
|
||||
TARGET_DEVICES += huasifei_mt7621dtu
|
||||
|
||||
|
@ -93,6 +93,11 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
|
||||
;;
|
||||
huasifei,mt7621dtu)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
|
||||
ucidef_set_interfaces_lan_wan "eth0" "eth1 eth2"
|
||||
;;
|
||||
oraybox,x3a)
|
||||
ucidef_add_switch "switch0" \
|
||||
"2:lan:2" "3:lan:1" "4:wan" "6u@eth0" "5u@eth1"
|
||||
|
@ -4,8 +4,12 @@ START=99
|
||||
|
||||
boot() {
|
||||
case $(board_name) in
|
||||
huasifei,ws1208v2)
|
||||
huasifei,mt7621dtu)
|
||||
echo 1 > /sys/class/gpio/modem_reset/value
|
||||
sleep 5
|
||||
sendat 0 AT+GTUSBMODE=32
|
||||
sendat 0 AT+CGDCONT=2,"IP","CMNET"
|
||||
sendat 0 AT+GTRNDIS=1,2
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user