MDEV: regexps in rename clause

Natanael Copa natanael.copa at gmail.com
Mon Mar 24 10:55:57 UTC 2008


On Sun, 2008-03-23 at 02:56 -0700, dronnikov at gmail.com wrote:
> Hello!
> 
> Attached is rewritten patch to add regexp substitution with rename clause. +154 octets.
> It is now possible to use more generic rules in mdev.conf -- take a look below.
> 
> Look at some cuts from my mdev.conf:
> -----
> # 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
> -----


> Please, do consider and/or comment,

+1

I have to agree that this one is really useful. Please consider commit.

Thanks!

-nc




More information about the busybox mailing list