summaryrefslogtreecommitdiff
path: root/etc/udev/redhat/05-udev-early.rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-04-28 13:29:24 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-04-28 13:29:24 +0200
commit900878ac803eb298c7adfe2b35a8b4ee9708ef6e (patch)
tree8dcd2cca6af170ee39a4f40805a3d3a8fcd587ed /etc/udev/redhat/05-udev-early.rules
parent54b813ba0d750900a961dd2d5c586dd814234218 (diff)
rules: Fedora update
Diffstat (limited to 'etc/udev/redhat/05-udev-early.rules')
-rw-r--r--etc/udev/redhat/05-udev-early.rules13
1 files changed, 10 insertions, 3 deletions
diff --git a/etc/udev/redhat/05-udev-early.rules b/etc/udev/redhat/05-udev-early.rules
index 970feb853b..c3024569fe 100644
--- a/etc/udev/redhat/05-udev-early.rules
+++ b/etc/udev/redhat/05-udev-early.rules
@@ -1,10 +1,17 @@
# sysfs is populated after the event is sent
ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
-ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
-ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
-
# ignore these events until someone needs them
SUBSYSTEM=="drivers", OPTIONS="ignore_device"
SUBSYSTEM=="module", OPTIONS="ignore_device"
+
+ACTION=="add", SUBSYSTEM=="?*", ENV{MODALIAS}=="?*", RUN+="modprobe $env{MODALIAS}", OPTIONS="last_rule"
+
+# pnp devices
+ACTION=="add", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do /lib/udev/modprobe pnp:d$$id; done < /sys/$devpath/id'", OPTIONS="last_rule"
+
+ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
+
+ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
+
ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="*", RUN="/sbin/firmware_helper", OPTIONS="last_rule"