udev: simpler check for rfcomm device names

Just the same kind of match we use for cdc-wdm devices.
This commit is contained in:
Aleksander Morgado
2016-07-28 00:14:08 +02:00
parent 1ca47e4b52
commit c7c65e2d57

View File

@@ -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"