busybox: fix mdev.conf

mdev does not set "/dev/snd" and "/dev/input" group and permission
propery, because with commit c3cf1e30a3022453311a7e9fe11d94c7a381640e
(May 2013!) the behavior of mdev has changed.

The device name is now taken directly from the uevent file and does no
longer match the old rule.

Fix the rules for "/dev/snd" and "/dev/input" according to the example
given in [1].

[1] http://lists.busybox.net/pipermail/busybox/2015-February/082297.html

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Jörg Krause 2017-03-24 08:53:21 +01:00 committed by Thomas Petazzoni
parent df81386700
commit afb585468b

View File

@ -23,17 +23,17 @@ ttyS[0-9]* root:root 660
ttyUSB[0-9]* root:root 660 ttyUSB[0-9]* root:root 660
# alsa sound devices # alsa sound devices
pcm.* root:audio 660 =snd/ snd/pcm.* root:audio 660
control.* root:audio 660 =snd/ snd/control.* root:audio 660
midi.* root:audio 660 =snd/ snd/midi.* root:audio 660
seq root:audio 660 =snd/ snd/seq root:audio 660
timer root:audio 660 =snd/ snd/timer root:audio 660
# input stuff # input stuff
event[0-9]+ root:root 640 =input/ input/event[0-9]+ root:root 640
mice root:root 640 =input/ input/mice root:root 640
mouse[0-9] root:root 640 =input/ input/mouse[0-9] root:root 640
ts[0-9] root:root 600 =input/ input/ts[0-9] root:root 600
# load modules # load modules
$MODALIAS=.* root:root 660 @modprobe "$MODALIAS" $MODALIAS=.* root:root 660 @modprobe "$MODALIAS"