summaryrefslogtreecommitdiff
path: root/package/network/utils/wwan/files/wwan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/utils/wwan/files/wwan.sh')
-rwxr-xr-xpackage/network/utils/wwan/files/wwan.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/utils/wwan/files/wwan.sh b/package/network/utils/wwan/files/wwan.sh
index 2e9d73f..e0bd4c8 100755
--- a/package/network/utils/wwan/files/wwan.sh
+++ b/package/network/utils/wwan/files/wwan.sh
@@ -59,7 +59,7 @@ proto_wwan_setup() {
json_set_namespace $old_cb
[ -n "$control" -a -n "$data" ] && {
- ttys=$(ls -d /sys/bus/usb/devices/$devicename/${devicename}*/tty* | sed "s/.*\///g" | tr "\n" " ")
+ ttys=$(ls -d /sys/bus/usb/devices/$devicename/${devicename}*/tty?* /sys/bus/usb/devices/$devicename/${devicename}*/tty/tty?* | sed "s/.*\///g" | tr "\n" " ")
ctl_device=/dev/$(echo $ttys | cut -d" " -f $((control + 1)))
dat_device=/dev/$(echo $ttys | cut -d" " -f $((data + 1)))
driver=comgt