Annotation of /tags/udev-114-r4/udev/udev-hotplug.rules.magellan
Parent Directory | Revision Log
Revision 292 -
(hide annotations)
(download)
Fri Aug 17 20:07:19 2007 UTC (17 years, 1 month ago) by niro
Original Path: trunk/udev/udev-hotplug.rules.magellan
File size: 2515 byte(s)
Fri Aug 17 20:07:19 2007 UTC (17 years, 1 month ago) by niro
Original Path: trunk/udev/udev-hotplug.rules.magellan
File size: 2515 byte(s)
-splitted hotplug event to an extra rule
1 | niro | 292 | # /etc/udev/rules/80-hotplug.rules: module loading rules for udev |
2 | # $Header: /root/magellan-cvs/src/udev/udev-hotplug.rules.magellan,v 1.1 2007-08-17 20:07:19 niro Exp $ | ||
3 | # | ||
4 | # There are a number of modifiers that are allowed to be used in some | ||
5 | # of the different fields. They provide the following subsitutions: | ||
6 | # %n - the "kernel number" of the device. | ||
7 | # For example, 'sda3' has a "kernel number" of '3' | ||
8 | # %k - the kernel name for the device. | ||
9 | # %M - the kernel major number for the device | ||
10 | # %m - the kernel minor number for the device | ||
11 | # %b - the bus id for the device | ||
12 | # %c - the string returned by the PROGRAM. (Note, this doesn't work within | ||
13 | # the PROGRAM field for the obvious reason.) | ||
14 | # %s{filename} - the content of a sysfs attribute. | ||
15 | # %% - the '%' char itself. | ||
16 | # | ||
17 | # Try not to modify this file, if you wish to change things, create a new rule | ||
18 | # file that can be run before this one. | ||
19 | # | ||
20 | |||
21 | # Module autoloading | ||
22 | ACTION!="add", GOTO="hotplug_load_end" | ||
23 | |||
24 | # check if the device has already been claimed by a driver | ||
25 | ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_load_end" | ||
26 | |||
27 | # this driver is broken and should not be loaded automatically | ||
28 | SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", GOTO="hotplug_load_end" | ||
29 | |||
30 | # Autoload modules that lack aliases but have them defined in autoload modules | ||
31 | ENV{MODALIAS}=="?*", RUN{ignore_error}+="modprobe.sh $env{MODALIAS}" | ||
32 | |||
33 | # /etc/modprobe.conf. | ||
34 | SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", RUN{ignore_error}+="/bin/sh -c 'while read id; do /lib/udev/modprobe.sh pnp:d$$id; done < /sys$devpath/id'" | ||
35 | # needed aliases are defined in /etc/modprobe.d/pnp-aliases | ||
36 | |||
37 | |||
38 | SUBSYSTEM=="i2o", RUN+="modprobe.sh i2o_block" | ||
39 | SUBSYSTEM=="mmc", RUN+="modprobe.sh mmc_block" | ||
40 | SUBSYSTEM=="tifm", RUN+="modprobe.sh tifm_sd" | ||
41 | SUBSYSTEM=="tifm", RUN+="modprobe.sh tifm_ms" | ||
42 | SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="modprobe.sh ide-scsi" | ||
43 | |||
44 | # Load driver for scsi-device | ||
45 | SUBSYSTEM!="scsi_device", GOTO="hotplug_scsi_end" | ||
46 | |||
47 | # Parts taken from redhat-rules | ||
48 | # sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC | ||
49 | # sr: 4 TYPE_WORM, 5 TYPE_ROM | ||
50 | # st/osst: 1 TYPE_TAPE | ||
51 | |||
52 | ATTRS{type}=="?*", TEST!="[module/sg]", RUN+="modprobe.sh sg" | ||
53 | ATTRS{type}=="0|7|14", RUN+="modprobe.sh sd_mod" | ||
54 | ATTRS{type}=="4|5", RUN+="modprobe.sh sr_mod" | ||
55 | ATTRS{type}=="8", RUN+="modprobe.sh ch" | ||
56 | |||
57 | ATTRS{type}=="1", ATTRS{vendor}=="On[sS]tream", \ | ||
58 | ATTRS{model}!="ADR*", RUN+="modprobe.sh osst", GOTO="hotplug_scsi_end" | ||
59 | ATTRS{type}=="1", RUN+="modprobe.sh st" | ||
60 | LABEL="hotplug_scsi_end" | ||
61 | |||
62 | LABEL="hotplug_load_end" |