Magellan Linux

Diff of /tags/udev-170-r1/udev-kernel-compat.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 516 by niro, Sat Mar 22 18:13:36 2008 UTC revision 884 by niro, Tue Oct 13 10:46:20 2009 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/30-kernel-compat.rules:  kernel compat rules for udev  # /etc/udev/rules/30-kernel-compat.rules:  kernel compat rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev-kernel-compat.rules.magellan,v 1.1 2008-03-22 18:13:36 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-kernel-compat.rules.magellan,v 1.3 2009-10-13 10:46:20 niro Exp $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 18  Line 18 
18  # file that can be run before this one.  # file that can be run before this one.
19  #  #
20    
21  ACTION!="add", GOTO="kernel_compat_end"  ACTION!="add|change", GOTO="kernel_compat_end"
   
 # workarounds needed to synchronize with sysfs  
 DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"  
22    
23  # needed for kernels <2.6.16  #
24  SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"  # naming device rules
25    #
26    
27  # needed for kernels <2.6.17  # dvb device naming
28  SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"  # needed for kernels <2.6.29-rc1
29    SUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
30    
31  # needed for kernels <2.6.22  #
32  SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="usb", MODE="0664"  # module loading rules
33    #
34  # this driver is broken and should not be loaded automatically  ACTION!="add", GOTO="kernel_compat_end"
 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398962  
 # needed for kernels <2.6.21  
 SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", ENV{MODALIAS}=""  
35    
36  # No need for more code, as MODALIAS is present  # No need for more code, as MODALIAS is present
37  ENV{MODALIAS}=="?*", GOTO="kernel_compat_end"  ENV{MODALIAS}=="?*", GOTO="kernel_compat_end"
38    
39  # needed for kernels <2.6.22  # needed for kernel <2.6.30-rc1
40  SUBSYSTEM!="scsi_device", GOTO="kernel_compat_end"  SUBSYSTEM=="scsi", ATTR{type}=="8", RUN+="/sbin/modprobe -b ch"
41    SUBSYSTEM=="mmc", RUN+="modprobe.sh -b mmc_block"
42   # Parts taken from redhat-rules  
43   # sd:           0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC  # needed for kernel <2.6.27-rc5
44   # sr:           4 TYPE_WORM, 5 TYPE_ROM  # acpi will do on newer kernels
45   # st/osst:      1 TYPE_TAPE  SUBSYSTEM=="pnp", DRIVER!="?*", \
46      RUN{ignore_error}+="/bin/sh -c 'modprobe.sh -a $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
  ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"  
  ATTRS{type}=="4|5", RUN+="/sbin/modprobe sr_mod"  
  ATTRS{type}=="8", RUN+="/sbin/modprobe ch"  
   
  ATTRS{type}=="1", ATTRS{vendor}=="On[sS]tream", \  
  ATTRS{model}!="ADR*", RUN+="/sbin/modprobe osst", GOTO="kernel_compat_end"  
  ATTRS{type}=="1", RUN+="/sbin/modprobe st"  
47    
48  LABEL="kernel_compat_end"  LABEL="kernel_compat_end"

Legend:
Removed from v.516  
changed lines
  Added in v.884