You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
7 years ago
|
# /etc/mdev.conf
|
||
|
|
||
8 years ago
|
# Syntax:
|
||
7 years ago
|
# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
|
||
|
# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
|
||
|
# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
|
||
8 years ago
|
#
|
||
7 years ago
|
# [-]: do not stop on this match, continue reading mdev.conf
|
||
8 years ago
|
# =: move, >: move and create a symlink
|
||
7 years ago
|
# !: do not create device node
|
||
|
# @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases
|
||
8 years ago
|
|
||
7 years ago
|
# Support module loading on hotplug
|
||
8 years ago
|
#$MODALIAS=.* root:root 0660 @/bin/busybox modprobe "$MODALIAS"
|
||
8 years ago
|
|
||
8 years ago
|
null root:root 0666
|
||
|
zero root:root 0666
|
||
|
full root:root 0666
|
||
|
random root:root 0666
|
||
|
urandom root:root 0444
|
||
8 years ago
|
|
||
8 years ago
|
# Console device
|
||
|
console root:tty 0600
|
||
8 years ago
|
|
||
8 years ago
|
# DVB devices
|
||
8 years ago
|
dvb([0-9]).([a-z]*)([0-9]) root:root 0644 =dvb/adapter%1/%2%3
|
||
8 years ago
|
# Framebuffer
|
||
8 years ago
|
fb([0-2]) root:root 0660 >fb/%1
|
||
8 years ago
|
|
||
8 years ago
|
ram1 root:root 0660 >ram
|
||
8 years ago
|
|
||
|
# Input layer
|
||
|
event[0-9]+ root:root 0640 =input/
|
||
|
mice root:root 0640 =input/
|
||
|
mouse[0-9]+ root:root 0640 =input/
|
||
8 years ago
|
|
||
|
# USB devices
|
||
7 years ago
|
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/mdev-usb
|
||
8 years ago
|
|
||
8 years ago
|
# Mass-storage devices
|
||
7 years ago
|
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mdev-mount
|
||
8 years ago
|
# Disc devices
|
||
7 years ago
|
sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
|
||
8 years ago
|
|
||
|
# WLAN devices
|
||
7 years ago
|
ra[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
|
||
|
rausb[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
|
||
|
wlan[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
|
||
8 years ago
|
|
||
7 years ago
|
# Block devices: group -> disk
|
||
8 years ago
|
mtdblock[0-9] root:root 0600
|
||
8 years ago
|
|
||
7 years ago
|
# Double up flash characters devices
|
||
8 years ago
|
mtd[0-9]+ root:root 0600
|
||
|
mtd[0-9]+ro root:root 0600
|
||
|
|
||
7 years ago
|
# Log all other devices. Right now useful only for debuging.
|
||
|
.* root:root 0600 */lib/mdev/common/mdev-log-only
|