Advertisement
Kimarite

/lib/udev/rules.d/80-drivers.rules -- Debian Wheezy

Jun 25th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. ACTION=="remove", GOTO="drivers_end"
  2.  
  3. # check if the device has already been claimed by a driver
  4. ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
  5.  
  6. # load the drivers
  7. ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"
  8.  
  9. SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe -b pcmcia"
  10.  
  11. # rules for subsystems which lack proper hotplug support
  12. SUBSYSTEM=="i2o", RUN+="/sbin/modprobe -b i2o_block"
  13. SUBSYSTEM=="memstick", RUN+="/sbin/modprobe -b --all ms_block mspro_block"
  14. SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", \
  15. RUN+="/sbin/modprobe -b tifm_sd"
  16. SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", \
  17. RUN+="/sbin/modprobe -b tifm_ms"
  18.  
  19. SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", \
  20. RUN+="/sbin/modprobe -b sg"
  21.  
  22. # Load VIO modules based on the device type
  23. SUBSYSTEM!="vio", GOTO="hotplug_vio_end"
  24. ENV{MODALIAS}=="?*", GOTO="hotplug_vio_end"
  25. ENV{VIO_TYPE}!="?*", IMPORT{program}="vio_type --export $devpath"
  26. ENV{VIO_TYPE}=="serial", RUN+="/sbin/modprobe -b hvc_console"
  27. ENV{VIO_TYPE}=="serial-server", RUN+="/sbin/modprobe -b hvcs"
  28. ENV{VIO_TYPE}=="network", RUN+="/sbin/modprobe -b ibmveth"
  29. ENV{VIO_TYPE}=="vscsi", RUN+="/sbin/modprobe -b ibmvscsic"
  30. ENV{VIO_TYPE}=="vlan", RUN+="/sbin/modprobe -b iseries_veth"
  31. ENV{VIO_TYPE}=="viodasd", RUN+="/sbin/modprobe -b viodasd"
  32. ENV{VIO_TYPE}=="viocd", RUN+="/sbin/modprobe -b viocd"
  33. ENV{VIO_TYPE}=="vnet", RUN+="/sbin/modprobe -b sunvnet"
  34. ENV{VIO_TYPE}=="vdisk", RUN+="/sbin/modprobe -b sunvdc"
  35. LABEL="hotplug_vio_end"
  36.  
  37. # From here on follows the hotplug agents which do not load modules
  38. LABEL="hotplug_driver_loaded"
  39.  
  40. SUBSYSTEM=="firmware", RUN+="firmware.agent"
  41.  
  42. LABEL="drivers_end"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement