[git commit master] Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Sep 8 12:16:00 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=db57fc22a69cbf6682c5d620fe821d2f0a3a36d0
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 docs/mdev.txt |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/docs/mdev.txt b/docs/mdev.txt
index 61a6f45..031e473 100644
--- a/docs/mdev.txt
+++ b/docs/mdev.txt
@@ -79,6 +79,18 @@ the format:
 	<device regex> <uid>:<gid> <octal permissions> [=path] [@|$|*<command>]
     or
 	<device regex> <uid>:<gid> <octal permissions> [>path] [@|$|*<command>]
+
+For example:
+---8<---
+# block devices
+([hs]d[a-z])		root:disk	660	>disk/%1/0
+([hs]d[a-z])([0-9]+)	root:disk	660	>disk/%1/%2
+mmcblk([0-9]+)		root:disk	660	>disk/mmc/%1/0
+mmcblk([0-9]+)p([0-9]+)	root:disk	660	>disk/mmc/%1/%2
+# network devices
+(tun|tap)		root:network	660	>net/%1
+---8<---
+
 The special characters have the meaning:
 	@ Run after creating the device.
 	$ Run before removing the device.
-- 
1.6.3.3



More information about the busybox-cvs mailing list