: USB, Infiniband and X0R rules
PATCH 1/1 : USB, Infiniband and X0R rules
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---
rules/rules.d/50-udev-default.rules +15 -1
@@ -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
Signature · 7 lines
| E-Mail: [email protected] .|. /V\ // \\ UIN:116043354 Homepage:http://piterpunk.info02.com.br /( )\ ^`~'^ ----> Slackware Linux <---- #105432
Kay Sievers
AppliedQuoted 4 lines · Piter PUNK
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. :)
Quoted 1 line
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.
Quoted 1 line
The patch fixes X0R symlink, too. From devices.txt:
Applied.
Thanks,
Kay