linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: USB, Infiniband and X0R rules
@ 2008-11-28  0:06 Piter PUNK
  2008-11-28  1:06 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Piter PUNK @ 2008-11-28  0:06 UTC (permalink / raw)
  To: linux-hotplug


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH]: USB, Infiniband and X0R rules
  2008-11-28  0:06 [PATCH]: USB, Infiniband and X0R rules Piter PUNK
@ 2008-11-28  1:06 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2008-11-28  1:06 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Nov 28, 2008 at 01:06, Piter PUNK <piterpk@terra.com.br> wrote:
> 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

I've added these. Seems like a rather half-baken idea though, to group
random stuff in a directory named after the bus the devices are
connected to. Looks like someone tried to survive the 20.000+ entries
/dev we had years ago. :)

> Infiniband to /dev/infiniband/name.

I've added the infiniband.rules files to the packages/ directory. We
can not put these into the default rules because distros already ship
infiniband rules in their own package.

> The patch fixes X0R symlink, too. From devices.txt:

Applied.

Thanks,
Kay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-28  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28  0:06 [PATCH]: USB, Infiniband and X0R rules Piter PUNK
2008-11-28  1:06 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).