summaryrefslogtreecommitdiffstats
path: root/rules.d/60-persistent-media-controller.rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules.d/60-persistent-media-controller.rules')
-rw-r--r--rules.d/60-persistent-media-controller.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.d/60-persistent-media-controller.rules b/rules.d/60-persistent-media-controller.rules
index bf614d9783..8c2175c5ba 100644
--- a/rules.d/60-persistent-media-controller.rules
+++ b/rules.d/60-persistent-media-controller.rules
@@ -7,6 +7,7 @@ SUBSYSTEM!="media", GOTO="persistent_media_ctl_end"
ENV{MAJOR}=="", GOTO="persistent_media_ctl_end"
IMPORT{builtin}="path_id"
-ENV{ID_PATH}=="?*", KERNEL=="media*", SYMLINK+="media/by-path/$env{ID_PATH}-media-controller"
+KERNEL=="media*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="media/by-path/$env{ID_PATH_WITH_USB_REVISION}-media-controller"
+KERNEL=="media*", ENV{ID_PATH_WITH_USB_REVISION}=="", ENV{ID_PATH}=="?*", SYMLINK+="media/by-path/$env{ID_PATH}-media-controller"
LABEL="persistent_media_ctl_end"