From: Bernhard Reutner-Fischer Date: Tue, 8 Sep 2009 12:16:00 +0000 (+0200) Subject: Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation X-Git-Tag: 1_16_0~510 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db57fc22a69cbf6682c5d620fe821d2f0a3a36d0;p=oweals%2Fbusybox.git Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation Signed-off-by: Bernhard Reutner-Fischer --- 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: : [=path] [@|$|*] or : [>path] [@|$|*] + +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.