home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / udev / rules.d / 90-modprobe.rules < prev    next >
Encoding:
Text File  |  2007-04-10  |  2.3 KB  |  60 lines

  1. # This file causes modules to be loaded for inserted devices.
  2. # See udev(7) for syntax.
  3. #
  4. # This file should only specify rules that cause modprobe to be called,
  5. # programs that configure or activate hardware should be called in
  6. # 80-programs.rules
  7.  
  8. ACTION!="add", GOTO="modprobe_end"
  9.  
  10. # Load IDE class modules based on the media type
  11. SUBSYSTEM!="ide", GOTO="ide_end"
  12. IMPORT{program}="ide_media --export $devpath"
  13. ENV{IDE_MEDIA}=="cdrom",        RUN+="/sbin/modprobe -Qba ide-cd"
  14. ENV{IDE_MEDIA}=="disk",            RUN+="/sbin/modprobe -Qba ide-disk"
  15. ENV{IDE_MEDIA}=="floppy",        RUN+="/sbin/modprobe -Qba ide-floppy"
  16. ENV{IDE_MEDIA}=="tape",            RUN+="/sbin/modprobe -Qba ide-tape"
  17. LABEL="ide_end"
  18.  
  19. # Load i2o class modules unequivocably until we know more about them
  20. SUBSYSTEM=="i2o",            RUN+="/sbin/modprobe -Qba i2o-block"
  21.  
  22. # Load MMC class modules unequivocably until we know more about them
  23. SUBSYSTEM=="mmc",            RUN+="/sbin/modprobe -Qba mmc-block"
  24.  
  25. # Load PNP modules with a helper that iterates the device ids
  26. SUBSYSTEM=="pnp", PROGRAM="pnp_modules $devpath", \
  27.                     RUN+="/sbin/modprobe -Qba $result"
  28.  
  29. # Load SCSI class modules based on the device class
  30. SUBSYSTEM!="scsi", GOTO="scsi_end"
  31. ATTR{type}=="0|7|14",           RUN+="/sbin/modprobe -Qba sd_mod"
  32. ATTR{type}=="1",                RUN+="/sbin/modprobe -Qba st"
  33. ATTR{type}=="[345]",            RUN+="/sbin/modprobe -Qba sr_mod"
  34. RUN+="/sbin/modprobe -Qba sg"
  35. LABEL="scsi_end"
  36.  
  37. # Load VIO modules based on the device type
  38. # (modules that lack modalias support)
  39. SUBSYSTEM!="vio", GOTO="vio_end"
  40. IMPORT{program}="vio_type --export $devpath"
  41. ENV{VIO_TYPE}=="serial",        RUN+="/sbin/modprobe -Qba hvc_console"
  42. ENV{VIO_TYPE}=="serial-server",        RUN+="/sbin/modprobe -Qba hvcs"
  43. ENV{VIO_TYPE}=="network",        RUN+="/sbin/modprobe -Qba ibmveth"
  44. ENV{VIO_TYPE}=="vscsi",            RUN+="/sbin/modprobe -Qba ibmvscsic"
  45. ENV{VIO_TYPE}=="vlan",            RUN+="/sbin/modprobe -Qba iseries_veth"
  46. ENV{VIO_TYPE}=="viodasd",        RUN+="/sbin/modprobe -Qba viodasd"
  47. ENV{VIO_TYPE}=="viocd",            RUN+="/sbin/modprobe -Qba viocd"
  48. LABEL="vio_end"
  49.  
  50. # Hack to load ti flashmedia subsystem drivers
  51. SUBSYSTEM!="tifm", GOTO="tifm_end"
  52. RUN+="/sbin/modprobe -Qba tifm_sd"
  53. RUN+="/sbin/modprobe -Qba tifm_ms"
  54. LABEL="tifm_end"
  55.  
  56. # Load drivers that match kernel-supplied alias
  57. ENV{MODALIAS}=="?*",            RUN+="/sbin/modprobe -Q $env{MODALIAS}"
  58.  
  59. LABEL="modprobe_end"
  60.