mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
Allow more ttyUSB<N> devices to use the 3g script (#3098)
SVN-Revision: 10396
This commit is contained in:
parent
2630cb3800
commit
752737ff5b
@ -13,7 +13,7 @@ scan_3g() {
|
|||||||
|
|
||||||
# try to figure out the device if it's invalid
|
# try to figure out the device if it's invalid
|
||||||
[ -n "$device" -a -e "$device" ] || {
|
[ -n "$device" -a -e "$device" ] || {
|
||||||
for device in /dev/ttyUSB2 /dev/tts/2 /dev/usb/tts/0 /dev/noz0; do
|
for device in /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/tts/2 /dev/usb/tts/0 /dev/noz0; do
|
||||||
[ -e "$device" ] && {
|
[ -e "$device" ] && {
|
||||||
config_set "$1" device "$device"
|
config_set "$1" device "$device"
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user