mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
examples/mdev_fat.conf: document that newer mdev exposes path
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f22a838aed
commit
a03195941b
@ -19,7 +19,7 @@
|
||||
# support module loading on hotplug
|
||||
$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
|
||||
|
||||
# null may already exist; therefore ownership has to be changed with command
|
||||
# null may already exist; therefore mode has to be changed with command
|
||||
null root:root 666 @chmod 666 $MDEV
|
||||
zero root:root 666
|
||||
full root:root 666
|
||||
@ -31,7 +31,7 @@ grsec root:root 660
|
||||
kmem root:root 640
|
||||
mem root:root 640
|
||||
port root:root 640
|
||||
# console may already exist; therefore ownership has to be changed with command
|
||||
# console may already exist; therefore mode has to be changed with command
|
||||
console root:tty 600 @chmod 600 $MDEV
|
||||
ptmx root:tty 666
|
||||
pty.* root:tty 660
|
||||
@ -63,6 +63,12 @@ control.* root:audio 660 =snd/
|
||||
midi.* root:audio 660 =snd/
|
||||
seq root:audio 660 =snd/
|
||||
timer root:audio 660 =snd/
|
||||
# for kernels/mdevs which expose full path of alsa devices:
|
||||
snd/pcm.* root:audio 660
|
||||
snd/control.* root:audio 660
|
||||
snd/midi.* root:audio 660
|
||||
snd/seq root:audio 660
|
||||
snd/timer root:audio 660
|
||||
|
||||
adsp root:audio 660 >sound/
|
||||
audio root:audio 660 >sound/
|
||||
@ -139,6 +145,6 @@ dahdi!(.*) root:dialout 660 =dahdi/%1
|
||||
# We are hooking to the last events. To avoid having two scripts running,
|
||||
# we check for DISK_MEDIA_CHANGE=1 (prev to last event has it,
|
||||
# and it's the _only_ difference in env for these two events as of kernel 3.7.7)
|
||||
# Unfortunately, there is no event for "user pressed [Turn USB storage] btn"!
|
||||
# Unfortunately, there is no event for "user pressed [Turn USB storage on] btn"!
|
||||
# Script merely backgrounds and tries to rescan partition table for 1 minute:
|
||||
ACTION=change;SUBSYSTEM=block;DISK_MEDIA_CHANGE=1;.* 0:0 660 */etc/mdev.conf.change_blockdev.sh
|
||||
|
Loading…
Reference in New Issue
Block a user