On Thu, 18 Oct 2018 at 09:47, Bernhard Reutner-Fischer
<rep.dot....@gmail.com> wrote:
>
> On Wed, 17 Oct 2018 at 11:02, 趙翊廷 <jack...@csie.io> wrote:
>
> > 2. in /etc/mdev.confg we need to add a symbol link something like 
> > /dev/block/3:0
> >     hd[a-z]* 0:6 660 *ln -sf /dev/$MDEV /dev/block/$(ls -l /dev/$MDEV|awk 
> > '{print $5}'|tr -d ','):$(ls -l /dev/$MDEV|awk '{print $6}')
> >     sd[a-z]* 0:6 660 *ln -sf /dev/$MDEV /dev/block/$(ls -l /dev/$MDEV|awk 
> > '{print $5}'|tr -d ','):$(ls -l /dev/$MDEV|awk '{print $6}')

Furthermore, didn't we have a shorthand for symlinks -- aliaslink --
like (from memory) one of:
* ->symlinktarget
* > symlinktarget

or the like?
Also, the '*' (IIRC) symlinks also on removal if you do not use the
built-in symlink support, so i'd expect you want more like (again
IIRC) '@', i.e. create.
Maybe even simpler might be to create the disks as
/dev/block/MAJOR:MINOR and symlink back to /dev/DEVNAME, i.e. the
other way round.

HTH,
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to