[patch/rfc] add fourth field to mdev.conf for subdirs

Mike Frysinger vapier at gentoo.org
Thu May 3 06:49:55 UTC 2007


On Thursday 03 May 2007, Natanael Copa wrote:
> On Wed, 2007-05-02 at 17:54 -0400, Mike Frysinger wrote:
> > there are a few common/important set of device nodes that only work when
> > in the proper subdirectory ... for example, all of ALSA userland requires
> > the sound nodes to be in /dev/snd/ and all of the input device nodes need
> > to be in /dev/input/
> >
> > we're using the attached patch by Sonic Zhang in our Blackfin
> > distribution ... it simply changes the syntax from:
> > <device regex> <uid>:<gid> <octal perms> [command]
> > to:
> > <device regex> <uid>:<gid> <octal perms> [subdir] [<@|$|*> command]
>
> Sometimes it is good to be able to rename the device itself too. For
> example, zapctl should go to zap/ctl and not zap/zapctl

heh, we account for zapctl as well actually ... i just didnt think noting it 
would be worthwhile as no one else would recognize it ;)

> What about this syntax:
> <device regex> <uid>:<gid> <octal perms> [subdir [dest]] [<@|$|*> command]
>
> or:
> <device regex> <uid>:<gid> <octal perms> [[subdir/][dest]] [<@|$|*>
> command]

hmm, if we offered subdir and symlink, that'd account for your needs as well 
right ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070503/8d9693e8/attachment-0002.pgp 


More information about the busybox mailing list