|
|
@ -1,13 +1,16 @@ |
|
|
|
# Provide user, group, and mode information for devices. If a regex matches |
|
|
|
# the device name provided by sysfs, use the appropriate user:group and mode |
|
|
|
# instead of the default 0:0 660. |
|
|
|
# |
|
|
|
# /etc/mdev.conf |
|
|
|
|
|
|
|
# Syntax: |
|
|
|
# [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...] |
|
|
|
# [-]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...] |
|
|
|
# |
|
|
|
# [-]: do not stop on this match, continue reading mdev.conf |
|
|
|
# =: move, >: move and create a symlink |
|
|
|
# @|$|*: run $cmd on delete, @cmd on create, *cmd on both |
|
|
|
# !: do not create device node |
|
|
|
# @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases |
|
|
|
|
|
|
|
# Support module loading on hotplug |
|
|
|
#$MODALIAS=.* root:root 0660 @/bin/busybox modprobe "$MODALIAS" |
|
|
|
|
|
|
|
null root:root 0666 |
|
|
@ -32,26 +35,26 @@ mice root:root 0640 =input/ |
|
|
|
mouse[0-9]+ root:root 0640 =input/ |
|
|
|
|
|
|
|
# USB devices |
|
|
|
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/usbcontrol |
|
|
|
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/mdev-usb |
|
|
|
|
|
|
|
# Mass-storage devices |
|
|
|
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mount |
|
|
|
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mdev-mount |
|
|
|
# Disc devices |
|
|
|
sr[0-9] root:root 0664 */lib/mdev/fs/mount |
|
|
|
sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount |
|
|
|
# Memory cards |
|
|
|
mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mount |
|
|
|
mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mdev-mount |
|
|
|
|
|
|
|
# WLAN devices |
|
|
|
ra[0-9]* root:root 0644 */lib/mdev/net/wlan |
|
|
|
rausb[0-9]* root:root 0644 */lib/mdev/net/wlan |
|
|
|
wlan[0-9]* root:root 0644 */lib/mdev/net/wlan |
|
|
|
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 |
|
|
|
|
|
|
|
# block devices: group -> disk |
|
|
|
# Block devices: group -> disk |
|
|
|
mtdblock[0-9] root:root 0600 |
|
|
|
|
|
|
|
# double up flash characters devices |
|
|
|
# Double up flash characters devices |
|
|
|
mtd[0-9]+ root:root 0600 |
|
|
|
mtd[0-9]+ro root:root 0600 |
|
|
|
|
|
|
|
# everything else |
|
|
|
.* root:root 0600 */lib/mdev/common/mdevlog |
|
|
|
# Log all other devices. Right now useful only for debuging. |
|
|
|
.* root:root 0600 */lib/mdev/common/mdev-log-only |
|
|
|