[no-ci] Update 4G modem files (#1392)

Co-authored-by: Igor Zalatov (from Citadel PC) <flyrouter@gmail.com>
pull/1395/head
Signor Pellegrino 2024-04-10 08:46:10 +03:00 committed by GitHub
parent 6c87fe83b8
commit 60059c598b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View File

@ -10,6 +10,7 @@ set_wireless() {
ifup wlan0
elif $path/modem "$dev"; then
ifup usb0
ifup eth1
fi
[ -e /sys/class/net/eth0 ] && ifconfig eth0 "${net:-192.168.2.10}"
}
@ -31,6 +32,7 @@ case "$1" in
if [ -n "$dev" ]; then
ifdown -f wlan0
ifdown -f usb0
ifdown -f eth1
else
ifdown eth0
fi

View File

@ -0,0 +1 @@
iface eth1 inet dhcp

View File

@ -8,7 +8,15 @@ set_gpio() {
# Generic RNDIS
if [ "$1" = "rndis-generic" ]; then
modprobe rndis_host
sleep 10
sleep 5
exit 0
fi
# Huawei E3372H and eth1
if [ "$1" = "rndis-e3372h" ]; then
usb_modeswitch -v 0x12d1 -p 0x1f01 -c /usr/share/usb_modeswitch/12d1:1f0
modprobe rndis_host
sleep 5
exit 0
fi