From 78e9bb837c258ac0ec7712b3d612cc2f407e731e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:42 +0200 Subject: Merging upstream version 256. Signed-off-by: Daniel Baumann --- rules.d/60-persistent-media-controller.rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rules.d/60-persistent-media-controller.rules (limited to 'rules.d/60-persistent-media-controller.rules') diff --git a/rules.d/60-persistent-media-controller.rules b/rules.d/60-persistent-media-controller.rules new file mode 100644 index 0000000..8c2175c --- /dev/null +++ b/rules.d/60-persistent-media-controller.rules @@ -0,0 +1,13 @@ +# 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" +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" -- cgit v1.2.3