diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-09-08 14:16:00 +0200 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-09-08 14:16:00 +0200 |
| commit | db57fc22a69cbf6682c5d620fe821d2f0a3a36d0 (patch) | |
| tree | b308922923e507da3b09f6013771e624207da86c /docs | |
| parent | 62298ab13ddbc655209514194e7a9a2b64c886fd (diff) | |
| download | busybox-w32-db57fc22a69cbf6682c5d620fe821d2f0a3a36d0.tar.gz busybox-w32-db57fc22a69cbf6682c5d620fe821d2f0a3a36d0.tar.bz2 busybox-w32-db57fc22a69cbf6682c5d620fe821d2f0a3a36d0.zip | |
Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/mdev.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/mdev.txt b/docs/mdev.txt index 61a6f4561..031e473a2 100644 --- a/docs/mdev.txt +++ b/docs/mdev.txt | |||
| @@ -79,6 +79,18 @@ the format: | |||
| 79 | <device regex> <uid>:<gid> <octal permissions> [=path] [@|$|*<command>] | 79 | <device regex> <uid>:<gid> <octal permissions> [=path] [@|$|*<command>] |
| 80 | or | 80 | or |
| 81 | <device regex> <uid>:<gid> <octal permissions> [>path] [@|$|*<command>] | 81 | <device regex> <uid>:<gid> <octal permissions> [>path] [@|$|*<command>] |
| 82 | |||
| 83 | For example: | ||
| 84 | ---8<--- | ||
| 85 | # block devices | ||
| 86 | ([hs]d[a-z]) root:disk 660 >disk/%1/0 | ||
| 87 | ([hs]d[a-z])([0-9]+) root:disk 660 >disk/%1/%2 | ||
| 88 | mmcblk([0-9]+) root:disk 660 >disk/mmc/%1/0 | ||
| 89 | mmcblk([0-9]+)p([0-9]+) root:disk 660 >disk/mmc/%1/%2 | ||
| 90 | # network devices | ||
| 91 | (tun|tap) root:network 660 >net/%1 | ||
| 92 | ---8<--- | ||
| 93 | |||
| 82 | The special characters have the meaning: | 94 | The special characters have the meaning: |
| 83 | @ Run after creating the device. | 95 | @ Run after creating the device. |
| 84 | $ Run before removing the device. | 96 | $ Run before removing the device. |
