[no-ci] Update 4G modem files

pull/1392/head
Igor Zalatov (from Citadel PC) 2024-04-10 00:13:37 +03:00
parent 6c87fe83b8
commit 1a46cf553e
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