summaryrefslogtreecommitdiff
path: root/etc/udev/redhat/05-udev-early.rules
blob: a58cc033d23f793a07eb37cf99f6874dc4826524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# sysfs is populated after the event is sent
ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
# 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}", GOTO="skip_wait"

# pnp devices
ACTION=="add", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do /lib/udev/modprobe pnp:d$$id; done < /sys/$devpath/id'"

ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"

ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"

LABEL="skip_wait"

ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="*", RUN="/sbin/firmware_helper", OPTIONS="last_rule"