1 --- udev/rules/debian/80-drivers.rules 1970-01-01 09:00:00.000000000 +0900
2 +++ udev-174/rules/debian/80-drivers.rules 2012-07-30 17:13:38.353317439 +0900
4 +ACTION=="remove", GOTO="drivers_end"
6 +# check if the device has already been claimed by a driver
7 +ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
10 +ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"
12 +# workaround for kernels < 2.6.27-rc5
13 +SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", \
14 + RUN+="/bin/sh -c '/sbin/modprobe --use-blacklist --all $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
16 +SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe -b pcmcia"
18 +# rules for subsystems which lack proper hotplug support
19 +SUBSYSTEM=="i2o", RUN+="/sbin/modprobe -b i2o_block"
20 +# workaround for kernels < 2.6.30
21 +SUBSYSTEM=="mmc", RUN+="/sbin/modprobe -b mmc_block"
22 +SUBSYSTEM=="memstick", RUN+="/sbin/modprobe -b --all ms_block mspro_block"
23 +SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", \
24 + RUN+="/sbin/modprobe -b tifm_sd"
25 +SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", \
26 + RUN+="/sbin/modprobe -b tifm_ms"
28 +SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", TEST!="[module/sg]", \
29 + RUN+="/sbin/modprobe -b sg"
31 +SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="/sbin/modprobe -b ide-scsi"
33 +# Load VIO modules based on the device type
34 +SUBSYSTEM!="vio", GOTO="hotplug_vio_end"
35 +ENV{MODALIAS}=="?*", GOTO="hotplug_vio_end"
36 +ENV{VIO_TYPE}!="?*", IMPORT{program}="vio_type --export $devpath"
37 +ENV{VIO_TYPE}=="serial", RUN+="/sbin/modprobe -b hvc_console"
38 +ENV{VIO_TYPE}=="serial-server", RUN+="/sbin/modprobe -b hvcs"
39 +ENV{VIO_TYPE}=="network", RUN+="/sbin/modprobe -b ibmveth"
40 +ENV{VIO_TYPE}=="vscsi", RUN+="/sbin/modprobe -b ibmvscsic"
41 +ENV{VIO_TYPE}=="vlan", RUN+="/sbin/modprobe -b iseries_veth"
42 +ENV{VIO_TYPE}=="viodasd", RUN+="/sbin/modprobe -b viodasd"
43 +ENV{VIO_TYPE}=="viocd", RUN+="/sbin/modprobe -b viocd"
44 +ENV{VIO_TYPE}=="vnet", RUN+="/sbin/modprobe -b sunvnet"
45 +ENV{VIO_TYPE}=="vdisk", RUN+="/sbin/modprobe -b sunvdc"
46 +LABEL="hotplug_vio_end"
48 +# From here on follows the hotplug agents which do not load modules
49 +LABEL="hotplug_driver_loaded"
51 +SUBSYSTEM=="firmware", RUN+="firmware.agent"
55 +SUBSYSTEM=="net", RUN+="net.agent"
57 +SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
59 +# Log every event to /dev/hotplug.log (for debugging).
60 +#SUBSYSTEM!="uids", RUN+="logger.agent"