X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=etc%2Fudev%2Fgentoo%2F50-udev.rules;h=7c2ac81b9fe10ed5789d9ebca7749f8c6557d622;hb=c746922ca26fe18f6b3f3a4516e7236bfc0106b7;hp=dd329712ddb950985cd4642749e7dda4f33ef8c7;hpb=538876cdc8cd1ad0cc7575d641feae2df91b507a;p=elogind.git diff --git a/etc/udev/gentoo/50-udev.rules b/etc/udev/gentoo/50-udev.rules index dd329712d..7c2ac81b9 100644 --- a/etc/udev/gentoo/50-udev.rules +++ b/etc/udev/gentoo/50-udev.rules @@ -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"