Magellan Linux

Diff of /tags/udev-162-r2/udev.rules.magellan

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

revision 189 by niro, Thu May 17 19:24:29 2007 UTC revision 216 by niro, Sun Jun 10 21:25:29 2007 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/50-udev.rules:  device naming rules for udev  # /etc/udev/rules/50-udev.rules:  device naming rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.2 2007-05-17 19:24:29 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.3 2007-06-10 21:25:29 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 248  KERNEL=="issm*", NAME="infiniband/%k" Line 248  KERNEL=="issm*", NAME="infiniband/%k"
248  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"  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"
249    
250    
251  # Setting timeout for tape-devices to 900 seconds  # Setting timeout for tape-devices (type 1) to 900 seconds
252    # and 60 seconds for device types 0, 7 and 14
253  # if you need timeouts for other devices add a similar rule  # if you need timeouts for other devices add a similar rule
254  # with correct type-value, or open a bug on bugs.gentoo.org.  # with correct type-value, or open a bug on bugs.gentoo.org.
255  ACTION=="add", SUBSYSTEM=="scsi" , ATTRS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys$$DEVPATH/timeout'"  SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
256    SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"
257    
258  # Module autoloading  # Module autoloading
259  ACTION!="add", GOTO="hotplug_no_add_event"  ACTION!="add", GOTO="hotplug_no_add_event"

Legend:
Removed from v.189  
changed lines
  Added in v.216