aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/wwan/files/wwan.sh
diff options
context:
space:
mode:
authorDavid Thornley <david.thornley@touchstargroup.com>2018-06-22 16:25:22 +1000
committerJohn Crispin <john@phrozen.org>2018-06-22 09:31:32 +0200
commitcb262b09396edd171eb3903e50ce5ddeb593f963 (patch)
treec6786d5fe1a3ee12cad111285512e1bae245bd0a /package/network/utils/wwan/files/wwan.sh
parentb8bdeace3998716292ee8cad7c556e01636472fc (diff)
downloadupstream-cb262b09396edd171eb3903e50ce5ddeb593f963.tar.gz
upstream-cb262b09396edd171eb3903e50ce5ddeb593f963.tar.bz2
upstream-cb262b09396edd171eb3903e50ce5ddeb593f963.zip
wwan: Add support for Gemalto Cinterion cellular modules
Includes specific support for PH8(1e2d-0053) / ELS61(1e2d-005b) modules. Note for ELS61, the serial driver changes from serial option(ttyUSB) to usb-cdc (ttyACM). Two additional fixes in this commit resolve issues with ttyACM devices: - * wwan.sh - sys-fs has a subdirectory indirection (*/tty/ttyACMx) which was not handled properly * wwan.usb - dependent scripts were not included, so this never actually called proto_set_available for example (and relied on inadvertent call for ttyUSB case) Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
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 2e9d73f1e2..e0bd4c8727 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