mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			[no-ci] Update 4G modem files (#1392)
Co-authored-by: Igor Zalatov (from Citadel PC) <flyrouter@gmail.com>pull/1395/head
							parent
							
								
									6c87fe83b8
								
							
						
					
					
						commit
						60059c598b
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -0,0 +1 @@ | |||
| iface eth1 inet dhcp | ||||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue