Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 8 Sep 2009 12:16:00 +0000 (14:16 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 8 Sep 2009 12:16:00 +0000 (14:16 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
docs/mdev.txt

index 61a6f4561e4035a012e6688acba716fb6c77352e..031e473a2d9d332d8dd9da9dfca7b9e21115c310 100644 (file)
@@ -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.