summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-26 18:35:10 +0000
committerDenis Vlasenko2008-07-26 18:35:10 +0000
commitdf96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb (patch)
tree7f8641e7a6fb7da86cac5b0a3dc0ca4456eecd95 /docs
parent48a9971bd41a6ad7fc2ee52dcc885b25012b5561 (diff)
downloadbusybox-df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb.zip
busybox-df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb.tar.gz
mdev: do not complain if mdev.conf does not exist;
use #if to prevent gcc from generating dead code (sadly, it's more ugly this way)
Diffstat (limited to 'docs')
-rw-r--r--docs/mdev.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/docs/mdev.txt b/docs/mdev.txt
index 555c2bf..63ad406 100644
--- a/docs/mdev.txt
+++ b/docs/mdev.txt
@@ -60,18 +60,23 @@ 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]
+You can rename/move 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
+ hda 0:3 660 =drives/
+This will move "hda" into the drives/ subdirectory.
+ hdb 0:3 660 =cdrom
This will rename "hdb" to "cdrom".
+Similarly, ">path" renames/moves the device but it also creates
+a direct symlink /dev/DEVNAME to the renamed/moved device.
+
If you also enable support for executing your own commands, then the file has
the format:
- <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>]
+ <device regex> <uid>:<gid> <octal permissions> [=path] [@|$|*<command>]
+ or
+ <device regex> <uid>:<gid> <octal permissions> [>path] [@|$|*<command>]
The special characters have the meaning:
@ Run after creating the device.
$ Run before removing the device.