diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-26 18:35:10 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-26 18:35:10 +0000 |
| commit | df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb (patch) | |
| tree | 7f8641e7a6fb7da86cac5b0a3dc0ca4456eecd95 /docs | |
| parent | 48a9971bd41a6ad7fc2ee52dcc885b25012b5561 (diff) | |
| download | busybox-w32-df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb.tar.gz busybox-w32-df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb.tar.bz2 busybox-w32-df96df9c7c78d0f19c8d1ac1aa3d8d80abbe16bb.zip | |
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.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/docs/mdev.txt b/docs/mdev.txt index 555c2bf61..63ad40602 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 | |||
| 60 | create your own total match like so: | 60 | create your own total match like so: |
| 61 | .* 1:1 777 | 61 | .* 1:1 777 |
| 62 | 62 | ||
| 63 | You can rename/relocate device nodes by using the next optional field. | 63 | You can rename/move device nodes by using the next optional field. |
| 64 | <device regex> <uid>:<gid> <octal permissions> [>path] | 64 | <device regex> <uid>:<gid> <octal permissions> [=path] |
| 65 | So if you want to place the device node into a subdirectory, make sure the path | 65 | So if you want to place the device node into a subdirectory, make sure the path |
| 66 | has a trailing /. If you want to rename the device node, just place the name. | 66 | has a trailing /. If you want to rename the device node, just place the name. |
| 67 | hda 0:3 660 >drives/ | 67 | hda 0:3 660 =drives/ |
| 68 | This will relocate "hda" into the drives/ subdirectory. | 68 | This will move "hda" into the drives/ subdirectory. |
| 69 | hdb 0:3 660 >cdrom | 69 | hdb 0:3 660 =cdrom |
| 70 | This will rename "hdb" to "cdrom". | 70 | This will rename "hdb" to "cdrom". |
| 71 | 71 | ||
| 72 | Similarly, ">path" renames/moves the device but it also creates | ||
| 73 | a direct symlink /dev/DEVNAME to the renamed/moved device. | ||
| 74 | |||
| 72 | If you also enable support for executing your own commands, then the file has | 75 | If you also enable support for executing your own commands, then the file has |
| 73 | the format: | 76 | the format: |
| 74 | <device regex> <uid>:<gid> <octal permissions> [<@|$|*> <command>] | 77 | <device regex> <uid>:<gid> <octal permissions> [=path] [@|$|*<command>] |
| 78 | or | ||
| 79 | <device regex> <uid>:<gid> <octal permissions> [>path] [@|$|*<command>] | ||
| 75 | The special characters have the meaning: | 80 | The special characters have the meaning: |
| 76 | @ Run after creating the device. | 81 | @ Run after creating the device. |
| 77 | $ Run before removing the device. | 82 | $ Run before removing the device. |
