Skip to contentSkip to conversation

possible udev problem with mtd[0-9]ro

DISCUSSION Aras Vaichas 1 participant 1 message Oct 28, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I'm customising some of my udev rules and I'm not sure how to handle the readonly MTD character class device, mtd[0-9]ro

The kernel names are: mtd1ro, mtd2ro, etc and I want to create a rule to create devices as such:

kernel name: Device:
mtd1ro -> /dev/mtd/1ro
mtd2ro -> /dev/mtd/2ro
etc ...

The problem is that there is no kernel number passed to the udev rules.

e.g. for kernel name = "mtd1ro"
%k = "mtd1ro" but %n = ""

Can someone help me with this rule?

regards,

Aras Vaichas

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel