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.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.d/60-persistent-media-controller.rules b/rules.d/60-persistent-media-controller.rules
new file mode 100644
index 0000000000..bf614d9783
--- /dev/null
+++ b/rules.d/60-persistent-media-controller.rules
@@ -0,0 +1,12 @@
+# do not edit this file, it will be overwritten on update
+
+# Media controller rules
+
+ACTION=="remove", GOTO="persistent_media_ctl_end"
+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"
+
+LABEL="persistent_media_ctl_end"