LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-21-2009, 05:19 PM   #1
DigiLogik
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"
 
  


Reply

Tags
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 08:55 AM
Ahhh, XSane, UDEV and Device Node Permissions? binarybob0001 Linux - Software 2 04-10-2007 12:16 AM
Automatically run command on device add hceuterpe Linux - Software 3 04-05-2007 12:47 PM
Created new partition. No device node for it. udev Slack10.2 myslfkeepslippin Linux - General 5 02-01-2006 02:16 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM


All times are GMT -5. The time now is 10:19 PM.

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