Or you can try this, also in /etc/rc. # Configure raid devices. until bioctl -c C -l /dev/sd0d softraid0; do done
for dev in 0 1 2 3; do if [ -f /etc/raid$dev.conf ]; then raidctl -c /etc/raid$dev.conf raid$dev fi done On 07/29/10 22:04, Jiri B. wrote: > On Thu, 29 Jul 2010 13:38:18 +0200 > Jan Stary <h...@stare.cz> wrote: > > I use following, right after swapctl in /etc/rc, I'm happy with that ;) > > for try in 1 2 3 ; do > bioctl -c C -l /dev/sd0d softraid0 2>/dev/null ; rc=$? > if [ $rc -eq 0 ]; then > break > elif [ $try -eq 3 ]; then > halt -qp > else > : > fi > done