aboutsummaryrefslogtreecommitdiff
path: root/core/busybox/files/mdev.conf
diff options
context:
space:
mode:
Diffstat (limited to 'core/busybox/files/mdev.conf')
-rw-r--r--core/busybox/files/mdev.conf58
1 files changed, 58 insertions, 0 deletions
diff --git a/core/busybox/files/mdev.conf b/core/busybox/files/mdev.conf
new file mode 100644
index 00000000..8edbd89c
--- /dev/null
+++ b/core/busybox/files/mdev.conf
@@ -0,0 +1,58 @@
+#
+# /etc/mdev.conf
+#
+
+# sample mdev_fat.conf with minor modifications. The original
+# can be found on examples/mdev_fat.conf which provides more
+# information regarding syntax and usage.
+#
+# see also the usage output for 'mdev --help' for more information.
+
+# support module loading on hotplug
+$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
+
+# general-purpose devices
+null root:root 666 @chmod 666 $MDEV
+zero root:root 666
+full root:root 666
+random root:root 444
+urandom root:root 444
+hwrandom root:root 444
+grsec root:root 660
+
+kmem root:root 640
+mem root:root 640
+port root:root 640
+
+# tty devices
+console root:tty 600 @chmod 600 $MDEV
+ptmx root:tty 666
+pty.* root:tty 660
+
+tty root:tty 666
+tty[0-9]* root:tty 660
+vcsa*[0-9]* root:tty 660
+ttyS[0-9]* root:uucp 660
+
+# audio devices
+adsp root:audio 660 >sound/
+audio root:audio 660 >sound/
+dsp root:audio 660 >sound/
+mixer root:audio 660 >sound/
+sequencer.* root:audio 660 >sound/
+snd/.* root:audio 660
+
+# video devices
+card[0-9] root:video 660 =dri/
+dri/.* root:video 660
+
+# misc stuff
+agpgart root:root 660 >misc/
+psaux root:root 660 >misc/
+rtc root:root 664 >misc/
+
+# input stuff
+event[0-9]+ root:root 640 =input/
+mice root:root 640 =input/
+mouse[0-9] root:root 640 =input/
+ts[0-9] root:root 640 =input/