chiark / gitweb /
rules: Fedora update
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 28 Apr 2007 11:29:24 +0000 (13:29 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 28 Apr 2007 11:29:24 +0000 (13:29 +0200)
etc/udev/redhat/05-udev-early.rules
etc/udev/redhat/50-udev.rules
etc/udev/redhat/95-pam-console.rules

index 970feb8..c302456 100644 (file)
@@ -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"
index c6ab1b5..9e946da 100644 (file)
@@ -65,9 +65,6 @@ KERNEL=="hw_random",            NAME="hwrng", SYMLINK+="%k"
 KERNEL=="nvram",               MODE="0660"
 KERNEL=="rtc",                 MODE="0644"
 
-# pnp devices
-ACTION=="add", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do /lib/udev/modprobe pnp:d$$id; done < /sys/$devpath/id'"
-
 # floppy devices
 KERNEL=="fd[01]*",             GROUP="floppy", MODE="0660"
 # fix floppy devices
@@ -230,6 +227,7 @@ KERNEL=="zap[0-9]*",                NAME="zap/%n"
 
 KERNEL=="pktcdvd", NAME="%k/control"
 
+
 KERNEL=="hd*[!0-9]", ATTR{removable}=="1", \
        ATTR{media}=="floppy", \
        SYMLINK+="floppy floppy-%k", OPTIONS+="ignore_remove, all_partitions"
@@ -252,6 +250,7 @@ KERNEL=="hd*[0-9]", BUS=="ide", ATTRS{removable}=="1", \
        OPTIONS+="ignore_remove"
 
 
+
 #######################################
 # Persistent block device stuff - begin
 #######################################
@@ -311,9 +310,6 @@ ACTION=="add", SUBSYSTEM=="usb_device", \
        PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", \
        NAME="%c", MODE="0644"
 
-ACTION=="add", SUBSYSTEM=="?*", ENV{MODALIAS}=="?*", RUN+="modprobe $env{MODALIAS}"
-
-ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", RUN+="/bin/sh -c 'echo 1 > /sys/$DEVPATH/allow_func_id_match'"
 
 # sd:           0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
 # sr:           4 TYPE_WORM, 5 TYPE_ROM
@@ -347,5 +343,6 @@ ACTION=="add", SUBSYSTEM=="scsi_device", ATTRS{type}=="1", ATTRS{vendor}!="On[sS
 # mmc block devices
 ACTION=="add", SUBSYSTEM=="mmc", RUN+="modprobe mmc_block"
 
+
 RUN+="socket:/org/kernel/udev/monitor"
 
index ff54b3c..cbb2d4a 100644 (file)
@@ -1 +1 @@
-ACTION=="add", SYSFS{dev}=="?*", KERNEL=="?*", RUN+="/sbin/pam_console_apply $env{DEVNAME} $env{DEVLINKS}"
+ENV{STARTUP}!="1", ACTION=="add", SYSFS{dev}=="?*", KERNEL=="?*", RUN+="/sbin/pam_console_apply $env{DEVNAME} $env{DEVLINKS}"