udev rule executes command, wont add device node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a spi device that I am trying to get to work with udev. I
currently have a udev rule written that will execute a script so I
know the udev rule is valid. I can also make it execute mknod to
create a device node in /dev. What I would like to do is have udev
create the device node for me without using the mknod call.

-Working Rule-
SUBSYSTEM=="spi", KERNEL=="spi10.0", RUN+="/bin/mknod /dev/thedevice c 252 0"

-Want to work rule (not working)-
SUBSYSTEM=="spi", KERNEL=="spi10.0", NAME="thedevice"

I appreciate any help.
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux