Possible change to /etc/mdev.conf default?

Michael J. Hammel busybox at graphics-muse.org
Sun May 13 23:47:15 UTC 2012


On Sun, 2012-05-13 at 18:14 -0400, Walter Dnes wrote:
> I was spelunking through my /etc/mdev.conf, looking at the syntax,
> when something occured to me looking at...
> 
> sr[0-9]*        root:cdrom 660 @ln -sf $MDEV cdrom
> 
>   What happens if you have multiple devices, e.g. "sr0" and "sr1"?  Does
> the system get confused?  Would the following work better...
> 
> sr[0-9]*        root:cdrom 660 @ln -sf $MDEV cdrom%1

I don't think mdev handles that syntax but it would be trivial to
replace the ln command with a script that simply parses the number
(sr<num>) from MDEV and performs the same function as you suggest.

-- 
Michael J. Hammel <busybox at graphics-muse.org>



More information about the busybox mailing list