hello,
just a small modification, to take /dev/md/* and /dev/md* into account

------
for dev in `grep "^md" /proc/mdstat | sed -r 's/^md([0-9]+).*/\1/'`; do
    if [ -b "/dev/md/$dev" ]; then
        dev="/dev/md/$dev"
    elif [ -b "/dev/md$dev" ]; then
        dev="/dev/md$dev"
    else
        continue
    fi
    if [ "`/lib/udev/vol_id -l $dev`" != "" ]; then
        ln -fs $dev /dev/disk/by-label/`/lib/udev/vol_id -l $dev`
    fi
    if [ "`/lib/udev/vol_id -u $dev`" != "" ]; then
        ln -fs $dev /dev/disk/by-uuid/`/lib/udev/vol_id -u $dev`
    fi
done
------

cu
libor

Attachment: pgpKFUktY2nQD.pgp
Description: PGP signature

Reply via email to