Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-21-2009, 06:19 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
udev rule executes command, wont add device node

I have a spi device with a custom driver 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"


udev, udev rules

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Udev Rule Help Please Toods Slackware 1 11-23-2007 09:55 AM
Ahhh, XSane, UDEV and Device Node Permissions? binarybob0001 Linux - Software 2 04-10-2007 01:16 AM
Automatically run command on device add hceuterpe Linux - Software 3 04-05-2007 01:47 PM
Created new partition. No device node for it. udev Slack10.2 myslfkeepslippin Linux - General 5 02-01-2006 03:16 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 06:08 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration