feat: finish and test connect script
This commit is contained in:
parent
9012a54ae5
commit
4438f69945
12
connect-huawei-e3372.sh
Normal file → Executable file
12
connect-huawei-e3372.sh
Normal file → Executable file
|
@ -5,6 +5,14 @@
|
|||
modprobe -v option
|
||||
# For Huawei CDC NCM ether card
|
||||
modprobe -v huawei_cdc_ncm
|
||||
usb_modeswitch -v 0x12d1 -p 0x14fe -J
|
||||
sleep 2
|
||||
usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -J
|
||||
sleep 5
|
||||
# TODO need to wait that /dev/ttyUSB0 to be created
|
||||
echo -ne "AT^NDISDUP=1,1,\"sl2sfr\"\r\n" > /dev/ttyUSB0
|
||||
sleep 3
|
||||
# TODO need to wait until CONNECTED with 4G network
|
||||
udhcpc -i wwan0
|
||||
iptables -t nat -A POSTROUTING -o wwan0 -j MASQUERADE
|
||||
iptables -A FORWARD -i br0 -j ACCEPT
|
||||
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
|
||||
|
||||
|
|
0
refresh-connect-huawei-e3372.sh
Normal file → Executable file
0
refresh-connect-huawei-e3372.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user