Allow more ttyUSB<N> devices to use the 3g script (#3098)
authorFlorian Fainelli <florian@openwrt.org>
Tue, 5 Feb 2008 15:43:33 +0000 (15:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 5 Feb 2008 15:43:33 +0000 (15:43 +0000)
SVN-Revision: 10396

package/comgt/files/3g.sh

index 2859a1bda7ca48c98962afe90970f35c92cf6d66..500269ce3d2c54b8d53c4cf54536ccccd4cc9f65 100644 (file)
@@ -13,7 +13,7 @@ scan_3g() {
 
        # try to figure out the device if it's invalid
        [ -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" ] && {
                                config_set "$1" device "$device"
                                break