conf/116177: rc.d/mdconfig2 script fail at -CURRENT

Ben Kelly bkelly at
Tue Nov 6 21:30:04 PST 2007

The following reply was made to PR conf/116177; it has been noted by GNATS.

From: Ben Kelly <bkelly at>
To: bug-followup at,  dindin at
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
 -                       if mdconfig -l -u ${_md} >/dev/null 2>&1; then
 +                       if [ -n "`mdconfig -l -u ${_md}`" ]; then
                                  err 3 "${_md} already exists"
                          echo "Creating ${_md} device (${_type})."

More information about the freebsd-rc mailing list