chiark / gitweb /
rule_generator: move all policy from write_net_rules to the rules file
[elogind.git] / etc / udev / gentoo / 50-udev.rules
index dd329712ddb950985cd4642749e7dda4f33ef8c7..7c2ac81b9fe10ed5789d9ebca7749f8c6557d622 100644 (file)
@@ -1,13 +1,9 @@
+# do not edit this file, it will be overwritten on update
+
 # /etc/udev/rules/50-udev.rules:  device naming rules for udev
 #
 # Gentoo specific rules
 #
-# There are a number of modifiers that are allowed to be used in some of the
-# fields.  See the udev man page for a full description of them.
-#
-# Try not to modify this file, if you wish to change things, create a new rule
-# file that can be run before this one.
-#
 
 # Net devices can have arbitrary names, even
 # ones set by the user. Not try to match normal
@@ -241,10 +237,6 @@ KERNEL=="umad*",   NAME="infiniband/%k"
 KERNEL=="issm*",       NAME="infiniband/%k"
 
 
-# usbfs-like device nodes
-# the way to go up to kernel 2.6.21 (and above if setting USB_DEVICE_CLASS=y)
-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"
-# starting from kernel 2.6.22 use this rule
 SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \
        NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", GROUP="usb", MODE="0664"