summaryrefslogtreecommitdiff
path: root/docs/mdev.txt
diff options
context:
space:
mode:
authorMike Frysinger2008-02-01 06:53:50 +0000
committerMike Frysinger2008-02-01 06:53:50 +0000
commitf0044c480c4da9c5818fe7a0973cd5529314d14b (patch)
tree8a1cf64b29dd2cae330a908c7881ed90f06cf545 /docs/mdev.txt
parentc348e0bc7bb104c9e2385a0d1c29099a7033adf8 (diff)
downloadbusybox-f0044c480c4da9c5818fe7a0973cd5529314d14b.zip
busybox-f0044c480c4da9c5818fe7a0973cd5529314d14b.tar.gz
add support for renaming/relocating device nodes
Diffstat (limited to 'docs/mdev.txt')
-rw-r--r--docs/mdev.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/mdev.txt b/docs/mdev.txt
index 4a4451b..38f1da9 100644
--- a/docs/mdev.txt
+++ b/docs/mdev.txt
@@ -53,6 +53,15 @@ matched, then the default of 0:0 660 is used. To set your own default, simply
create your own total match like so:
.* 1:1 777
+You can rename/relocate device nodes by using the next optional field.
+ <device regex> <uid>:<gid> <octal permissions> [>path]
+So if you want to place the device node into a subdirectory, make sure the path
+has a trailing /. If you want to rename the device node, just place the name.
+ hda 0:3 660 >drives/
+This will relocate "hda" into the drives/ subdirectory.
+ hdb 0:3 660 >cdrom
+This will rename "hdb" to "cdrom".
+
If you also enable support for executing your own commands, then the file has
the format:
<device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>]