OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.8 KiB

  1. ########################################################################
  2. #
  3. # Description : 35-helper.rules
  4. #
  5. # Authors : Based on Open Suse Udev Rules
  6. # kay.sievers@suse.de
  7. #
  8. # Adapted to : Jim Gifford
  9. # LFS : Alexander E. Patrakov
  10. #
  11. # Version : 00.01
  12. #
  13. # Notes :
  14. #
  15. ########################################################################
  16. # kernel firmware loader
  17. SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
  18. # check cdrom helper
  19. BUS=="ide", KERNEL=="hd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
  20. BUS=="scsi", KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
  21. BUS=="scsi", KERNEL=="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
  22. BUS=="scsi", KERNEL=="sg[0-9]*", ACTION=="add", DRIVERS=="sr", GROUP="cdrom"
  23. BUS=="ide", ENV{ID_CDROM}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdrom%c"
  24. BUS=="ide", ENV{ID_CDROM_CD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdr%c"
  25. BUS=="ide", ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdrw%c"
  26. BUS=="ide", ENV{ID_CDROM_DVD}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="dvd%c"
  27. BUS=="ide", ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="dvdrw%c"
  28. BUS=="scsi", ENV{ID_CDROM}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdrom%c"
  29. BUS=="scsi", ENV{ID_CDROM_CD_R}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdr%c"
  30. BUS=="scsi", ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdrw%c"
  31. BUS=="scsi", ENV{ID_CDROM_DVD}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="dvd%c"
  32. BUS=="scsi", ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="dvdrw%c"
  33. # adds floppy devices
  34. KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"