summaryrefslogtreecommitdiff
path: root/etc/udev/suse
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-09 19:17:25 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-09 19:17:25 +0200
commit6214290df56de85772bdd62f8f646863306b39f0 (patch)
treec6ffa195a574444250f61ab1b5a7d6dae020a664 /etc/udev/suse
parentbebbc31b90056f5b0eafb52fc965f0cc713f0d4f (diff)
more distro rules updates
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'etc/udev/suse')
-rw-r--r--etc/udev/suse/50-udev.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/udev/suse/50-udev.rules b/etc/udev/suse/50-udev.rules
index be5a2478ba..515b572e75 100644
--- a/etc/udev/suse/50-udev.rules
+++ b/etc/udev/suse/50-udev.rules
@@ -185,7 +185,6 @@ KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
# device mapper targets
KERNEL=="device-mapper", ACTION=="add", NAME="%k", SYMLINK+="mapper/control"
-KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/udev.devmap_name.sh %M %m | /bin/sed 's.--._.;s.-./.;s._.-.'", SYMLINK+="%c"
KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/udev.devmap_name.sh %M %m", NAME="mapper/%c"
# persistent disk device links /dev/disk/
@@ -235,8 +234,9 @@ KERNEL=="tun", NAME="net/%k", MODE="0600"
SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug"
SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug"
-# mount usbfs
+# libusb device access (mount usbfs or usbdev nodes)
DEVPATH=="/module/usbcore", ACTION=="add", RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb"
+SUBSYSTEM="usb_device", PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK="%c"
# firmware loader
SUBSYSTEM=="firmware", ACTION=="add", RUN+="/etc/hotplug.d/firmware/50-firmware.hotplug"