[MDEV] mdev and CONFIG_SYSFS_DEPRECATED
Souf
souf_oued at yahoo.fr
Fri May 18 11:45:51 PDT 2007
Le vendredi 18 mai 2007 à 11:02 -0700, Ned Ludd a écrit :
> It would be ideal not to alter the syntax of mdev.conf in anyway that
> people who already have established working configs will be forced to
> upgrade. Doing just that sort of the thing is why many of us dislike
> udev with it's ever changing code base.
The syntax of mdev.con was not altered, what exists continuous perfectly
to work but it there optional additions, I attached my mdev.conf
> > I rectify:
> > 5- work with AND without CONFIG_SYSFS_DEPRECATED
>
> Yeah we want that part which checks for the symlinks.
you had it in the preceding message.
http://busybox.net/lists/busybox/attachments/20070518/845f1b6f/attachment-0001.bin
Thanks.
Malek
-------------- next part --------------
# /etc/mdev.conf
#create symlinks
# NO COMMAND WITH SYMLINK
#<symlink> -> <target>
MAKEDEV -> /sbin/MAKEDEV
core -> /proc/kcore
fd -> /proc/self/fd
ram -> ram1
stderr -> /proc/self/fd/2
stdin -> /proc/self/fd/0
stdout -> /proc/self/fd/1
vbi -> vbi0
video -> video0
log -> /tmp/log
XOR -> null
#create (sub-)directories
# NO COMMAND WITH SUBDIRS
#<(sub-)directory> <octal permissions>
pts 755
shm 777
#Create a simple device
#<device regex> <uid>:<gid> <octal permissions>
sda 0:0 0640
sda[0-9] 0:0 0640
null 0:0 777
zero 0:0 666
#Create a simple device with command
#<device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>]
rtc 0:0 644 @echo "HELLO $MDEV"
urandom 0:0 444 @ echo "HELLO $MDEV"
console 0:5 0600
fd0 0:11 0660
kmem 0:9 000
mem 0:9 0640
port 0:9 0640
ptmx 0:5 0666
tty 0:5 0666
tty[0-9]* 0:5 0660
ttyS* 0:20 660
fb0 0:5 0640
mtd[0-9] 0:0 640
#Create a device in a (sub-)directory
#<device regex> <uid>:<gid> <octal permissions> [</>>/><(sub-)directory> <octal permissions>]
tun 0:0 660 >> net 755
event[0-9] 0:0 0600 >> input 0755
mice 0:0 0600 >> input 0755
mouse[0-9] 0:0 0600 >> input 0755
#<device regex> <uid>:<gid> <octal permissions> [</>>/><(sub-)directory> <octal permissions>] [<@|$|*> <command>]
seq 0:0 0666 >> snd 755 @echo "HELLO $MDEV"
timer 0:0 0666 >> snd 755 @ echo "HELLO $MDEV"
pcmC[0-9]D[0-9]p 0:0 0666 >> snd 755 $echo "GOOD BYE $MDEV"
pcmC[0-9]D[0-9]c 0:0 0666 >> snd 755 $ echo "GOOD BYE $MDEV"
controlC[0-9] 0:0 0666 >> snd 755 * echo "HI $MDEV"
More information about the busybox
mailing list