From 4f7e89f03cef469628b73000c4cf97eae6d566a0 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Jun 2020 21:02:30 +0200 Subject: wwan: T2529: harden device completion helper Commit 1c7d7cbd39 ("wwan: T2529: migrate device from ttyUSB to usbXbY.YpZ.Z") added a new completion helper path for USB based serial interfaces. If no USB based serial port was available on the system this produced the following error: "ls: cannot access '/dev/serial/by-bus': No such file or directory" Only list USB based serial interfaces if there is at least one connected to the system. --- interface-definitions/interfaces-wirelessmodem.xml.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces-wirelessmodem.xml.in b/interface-definitions/interfaces-wirelessmodem.xml.in index d5f2e04d7..6989dea1b 100644 --- a/interface-definitions/interfaces-wirelessmodem.xml.in +++ b/interface-definitions/interfaces-wirelessmodem.xml.in @@ -48,15 +48,16 @@ Serial device - + + ttySXX - System TTY device name + TTY device name, regular serial port usbXbY.YpZ.Z - System TTY device name + TTY device name, USB based -- cgit v1.2.3