80-debian-compat.rules 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # Debian specific udev rules for backwards compatibility
  2. # needed for old tape drivers, http://bugs.debian.org/657948
  3. SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN{builtin}+="kmod load sg"
  4. # device permissions
  5. KERNEL=="mISDNtimer", GROUP="dialout"
  6. KERNEL=="mwave", GROUP="dialout"
  7. KERNEL=="nvram", GROUP="kmem", MODE="0640"
  8. KERNEL=="pktcdvd", GROUP="cdrom", MODE="0644"
  9. KERNEL=="lirc[0-9]*", GROUP="video"
  10. KERNEL=="legousbtower*", MODE="0666"
  11. KERNEL=="sonypi", MODE="0666"
  12. KERNEL=="mmtimer", MODE="0644"
  13. KERNEL=="sgi_*", MODE="0666"
  14. KERNEL=="z90crypt", MODE="0666"
  15. # These rules will create symlinks for CD/DVD drives, to help old
  16. # programs which are unable to automatically discover the devices.
  17. # The first detected device gets the symlink, but this is not stable across
  18. # reboots.
  19. ENV{ID_CDROM_CD_RW}=="?*", \
  20. PROGRAM="/bin/sh -c 'ln -s %k /run/udev/link.cdrw 2>/dev/null; [ `readlink /run/udev/link.cdrw` = %k ]", \
  21. SYMLINK+="cdrw", OPTIONS+="link_priority=-100"
  22. ENV{ID_CDROM_DVD}=="?*", \
  23. PROGRAM="/bin/sh -c 'ln -s %k /run/udev/link.dvd 2>/dev/null; [ `readlink /run/udev/link.dvd` = %k ]", \
  24. SYMLINK+="dvd", OPTIONS+="link_priority=-100"
  25. ENV{ID_CDROM_DVD_RW}=="?*", \
  26. PROGRAM="/bin/sh -c 'ln -s %k /run/udev/link.dvdrw 2>/dev/null; [ `readlink /run/udev/link.dvdrw` = %k ]", \
  27. SYMLINK+="dvdrw", OPTIONS+="link_priority=-100"