modemmanager: if an alias name is used do not check sysfs path
authorFlorian Eckert <[email protected]>
Thu, 15 Jun 2023 13:38:34 +0000 (15:38 +0200)
committerFlorian Eckert <[email protected]>
Thu, 15 Jun 2023 13:45:16 +0000 (15:45 +0200)
If an alias name is used for the modem, then a check if the device exists
in sysfs does not work. To fix this remove the check if the sysfs device
exists. The protocoll handler already checks if the modem is responsible
for this device on the next line.

Signed-off-by: Florian Eckert <[email protected]>
net/modemmanager/Makefile
net/modemmanager/files/modemmanager.proto

index b6063fb85269a88049e4333e9ee2a2703f543749..3c021b44dd0b2409c6fe87da6617ac9bb6f5b2c3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=modemmanager
 PKG_SOURCE_VERSION:=1.20.6
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
index e6ec9e2030d71ce2683b6a01469ef59678940a8c..2a61f5178871eab56fe057af885491c32551a4d1 100755 (executable)
@@ -368,11 +368,6 @@ proto_modemmanager_setup() {
                proto_set_available "${interface}" 0
                return 1
        }
-       [ -e "${device}" ] || {
-               echo "Device not found in sysfs"
-               proto_set_available "${interface}" 0
-               return 1
-       }
 
        # validate that ModemManager is handling the modem at the sysfs path
        modemstatus=$(mmcli --modem="${device}" --output-keyvalue)