From: Piter PUNK <piterpk@terra.com.br>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH]: USB, Infiniband and X0R rules
Date: Fri, 28 Nov 2008 00:06:14 +0000 [thread overview]
Message-ID: <492F35F6.1040608@terra.com.br> (raw)
Hi,
Those are the last custom slackware rules. They creates some
devices in correct place (following devices.txt).
USB devices are moved to /dev/usb/name and Infiniband
to /dev/infiniband/name.
The patch fixes X0R symlink, too. From devices.txt:
---
/dev/X0R null symbolic Required by iBCS-2
Note: /dev/X0R is <letter X>-<digit 0>-<letter R>.
---
Well, the patch is below:
---patch here---
diff -Naur udev-134-orig/rules/rules.d/50-udev-default.rules udev-134/rules/rules.d/50-udev-default.rules
--- udev-134-orig/rules/rules.d/50-udev-default.rules 2008-11-19 18:46:39.000000000 -0200
+++ udev-134/rules/rules.d/50-udev-default.rules 2008-11-27 21:36:51.000000000 -0200
@@ -20,7 +20,7 @@
# mem
KERNEL="null|zero|full|random|urandom", MODE="0666"
-KERNEL="null", SYMLINK+="XOR"
+KERNEL="null", SYMLINK+="X0R"
KERNEL="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
KERNEL="ram0", SYMLINK+="ramdisk"
KERNEL="ram1", SYMLINK+="ram"
@@ -59,6 +59,20 @@
# firmware class requests
SUBSYSTEM="firmware", ACTION="add", RUN+="firmware.sh"
+# usb devices
+KERNEL="hiddev*", NAME="usb/%k"
+KERNEL="legousbtower*", NAME="usb/%k"
+KERNEL="dabusb*", NAME="usb/%k"
+KERNEL="usbdpfp*", NAME="usb/%k"
+KERNEL="cpad*", NAME="usb/%k"
+
+# infiniband devices
+KERNEL="umad*", NAME="infiniband/%k"
+KERNEL="issm*", NAME="infiniband/%k"
+KERNEL="uverbs*", NAME="infiniband/%k"
+KERNEL="ucm*", NAME="infiniband/%k"
+KERNEL="rdma_cm", NAME="infiniband/%k"
+
# libusb device nodes
SUBSYSTEM="usb", ENV{DEVTYPE}="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
---end patch---
Hope it can be useful
Piter PUNK
--
| E-Mail: piterpk@terra.com.br
.|.
/V\
// \\ UIN:116043354 Homepage:http://piterpunk.info02.com.br
/( )\
^`~'^ ----> Slackware Linux <----
#105432
next reply other threads:[~2008-11-28 0:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 0:06 Piter PUNK [this message]
2008-11-28 1:06 ` [PATCH]: USB, Infiniband and X0R rules Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492F35F6.1040608@terra.com.br \
--to=piterpk@terra.com.br \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.