LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-06-2005, 10:02 PM   #1
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
Question udev rules, finding the kernel name of a device?


First, a short background. I'm running Slackware 10.2 with 2.6.13 Kernel and udev. I had a need to change default permissions of /dev/nvram from 0660 to 0666. Slackware doesn't use a udev.permissions file so you have to write a new rule. In the existing udev.rules a rule does not exist for the nvram device.

The rule I came up with was:

KERNEL="nvram", NAME="%k", MODE="0666"

which worked great. Now for my question...

To set the KERNEL you need to know the kernels name for a device. In this case I was able to guess the kernel name but I don' t like guessing things. The question is:

How do you find out what the kernels name is for a device?

It's easy to find the name for a USB device. There are plenty of tutorials related to that. But how to find the kernels device name for something else?
 
Old 11-06-2005, 11:54 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
check out the /sys filesystem might be what you need
 
Old 11-07-2005, 12:42 AM   #3
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Have any links to docs about the layout of /sys and what the different directories mean?
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating rules for udev wnaLinux Slackware 5 01-03-2008 10:21 AM
Networking rules (udev) cassi0peias Linux - Networking 1 10-18-2005 11:13 AM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 03:04 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 06:08 AM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 07:54 PM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
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