[PATCH 14/14] udev: simpler check for rfcomm device names
Aleksander Morgado
aleksander at aleksander.es
Wed Jul 27 22:14:08 UTC 2016
Just the same kind of match we use for cdc-wdm devices.
---
src/80-mm-candidate.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/80-mm-candidate.rules b/src/80-mm-candidate.rules
index 52e6882..2f95e7d 100644
--- a/src/80-mm-candidate.rules
+++ b/src/80-mm-candidate.rules
@@ -11,7 +11,7 @@ ACTION!="add|change|move", GOTO="mm_candidate_end"
# Opening bound but disconnected Bluetooth RFCOMM ttys would initiate the
# connection. Don't do that.
-KERNEL=="rfcomm[0-9]*", DEVPATH=="*/virtual/*", GOTO="mm_candidate_end"
+KERNEL=="rfcomm*", DEVPATH=="*/virtual/*", GOTO="mm_candidate_end"
SUBSYSTEM=="tty", ENV{ID_MM_CANDIDATE}="1"
SUBSYSTEM=="net", ENV{ID_MM_CANDIDATE}="1"
--
2.9.0
More information about the ModemManager-devel
mailing list