aboutsummaryrefslogtreecommitdiff
path: root/docs/mdev.txt
diff options
context:
space:
mode:
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 4a4451b4d..38f1da964 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
53create your own total match like so: 53create your own total match like so:
54 .* 1:1 777 54 .* 1:1 777
55 55
56You can rename/relocate device nodes by using the next optional field.
57 <device regex> <uid>:<gid> <octal permissions> [>path]
58So if you want to place the device node into a subdirectory, make sure the path
59has a trailing /. If you want to rename the device node, just place the name.
60 hda 0:3 660 >drives/
61This will relocate "hda" into the drives/ subdirectory.
62 hdb 0:3 660 >cdrom
63This will rename "hdb" to "cdrom".
64
56If you also enable support for executing your own commands, then the file has 65If you also enable support for executing your own commands, then the file has
57the format: 66the format:
58 <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>] 67 <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>]