diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-01 06:53:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-01 06:53:50 +0000 |
commit | f0044c480c4da9c5818fe7a0973cd5529314d14b (patch) | |
tree | 8a1cf64b29dd2cae330a908c7881ed90f06cf545 /docs | |
parent | c348e0bc7bb104c9e2385a0d1c29099a7033adf8 (diff) | |
download | busybox-w32-f0044c480c4da9c5818fe7a0973cd5529314d14b.tar.gz busybox-w32-f0044c480c4da9c5818fe7a0973cd5529314d14b.tar.bz2 busybox-w32-f0044c480c4da9c5818fe7a0973cd5529314d14b.zip |
add support for renaming/relocating device nodes
Diffstat (limited to 'docs')
-rw-r--r-- | docs/mdev.txt | 9 |
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 | |||
53 | create your own total match like so: | 53 | create your own total match like so: |
54 | .* 1:1 777 | 54 | .* 1:1 777 |
55 | 55 | ||
56 | You can rename/relocate device nodes by using the next optional field. | ||
57 | <device regex> <uid>:<gid> <octal permissions> [>path] | ||
58 | So if you want to place the device node into a subdirectory, make sure the path | ||
59 | has a trailing /. If you want to rename the device node, just place the name. | ||
60 | hda 0:3 660 >drives/ | ||
61 | This will relocate "hda" into the drives/ subdirectory. | ||
62 | hdb 0:3 660 >cdrom | ||
63 | This will rename "hdb" to "cdrom". | ||
64 | |||
56 | If you also enable support for executing your own commands, then the file has | 65 | If you also enable support for executing your own commands, then the file has |
57 | the format: | 66 | the format: |
58 | <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>] | 67 | <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>] |