Browse Source

Add rules of dvd

usb-socket
Mohammad_Faraji 6 months ago
parent
commit
33dda07ef9
  1. 5
      src/rules/90-dvd-storage.rules

5
src/rules/90-dvd-storage.rules

@ -0,0 +1,5 @@
# Rule for DVD disk insertion
#ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM_MEDIA}=="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action add %E{DEVNAME}"
# Rule for DVD disk removal
#ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM_MEDIA}!="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action remove %E{DEVNAME}"
ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM}=="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action %E{ACTION} %E{DEVNAME}"
Loading…
Cancel
Save