From 9444bf2f389fdb645c6e54de0d6ab818b8b0256b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Aug 1999 18:52:45 +0000 Subject: more raid fixes --- rc.d/rc.sysinit | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 74d55ed1..0ead3c10 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -281,15 +281,19 @@ if [ -f /proc/mdstat -a -f /etc/raidtab ]; then # Try raidstart first...if that fails then # fall back to raidadd, raidrun. If that # also fails, then we drop to a shell - if [ -x raidstart ]; then - raidstart $i + if [ -x /sbin/raidstart ]; then + /sbin/raidstart $i RESULT=$? else RESULT=1 fi - if [ $RESULT -gt 0 -a -x raidadd -a -x raidrun ]; then - raidadd $i - raidrun $i + if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then + /sbin/raid0run $i + RESULT=$? + fi + if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then + /sbin/raidadd $i + /sbin/raidrun $i RESULT=$? fi if [ $RESULT -gt 0 ]; then -- cgit v1.2.1