Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2007 05:30:04 GMT
From:      Ben Kelly <bkelly@vadev.org>
To:        freebsd-rc@FreeBSD.org
Subject:   Re: conf/116177: rc.d/mdconfig2 script fail at -CURRENT
Message-ID:  <200711070530.lA75U4Zi091815@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/116177; it has been noted by GNATS.

From: Ben Kelly <bkelly@vadev.org>
To: bug-followup@FreeBSD.org,  dindin@dindin.ru
Cc:  
Subject: Re: conf/116177: rc.d/mdconfig2 script fail at -CURRENT
Date: Wed, 07 Nov 2007 00:02:52 -0500

 If you are going to patch /etc/rc.d/mdconfig2 I think you also need to 
 update the mdconfig script as well.  It has the same problem.
 
 --- /usr/src/etc/rc.d/mdconfig  2007-08-25 00:19:17.000000000 +0000
 +++ /etc/rc.d/mdconfig  2007-11-04 16:42:24.000000000 +0000
 @@ -119,7 +119,7 @@
                                          sleep 2
                                  fi
                          fi
 -                       if mdconfig -l -u ${_md} >/dev/null 2>&1; then
 +                       if [ -n "`mdconfig -l -u ${_md}`" ]; then
                                  err 3 "${_md} already exists"
                          fi
                          echo "Creating ${_md} device (${_type})."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711070530.lA75U4Zi091815>