Date: Thu, 23 Aug 2007 12:58:23 +0200 (CEST) From: Martin Matuska <mm@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/115751: [PATCH] etc/rc.d/mdconfig (RELENG_6) Message-ID: <20070823105823.BF2A04538A@mail.vx.sk> Resent-Message-ID: <200708231100.l7NB0Dak077436@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115751
>Category: conf
>Synopsis: [PATCH] etc/rc.d/mdconfig (RELENG_6)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 23 11:00:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 6.2-STABLE
>Organization:
>Environment:
FreeBSD 6.2-STABLE i386 and amd64
>Description:
RELENG_6 version of etc/rc.d/mdconfig does not properly detect loaded KLD's
>How-To-Repeat:
>Fix:
Index: etc/rc.d/mdconfig
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/mdconfig,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 mdconfig
--- etc/rc.d/mdconfig 21 Aug 2006 15:06:38 -0000 1.3.2.1
+++ etc/rc.d/mdconfig 23 Aug 2007 10:54:12 -0000
@@ -84,7 +84,7 @@
fi
if [ "${_file}" != "${_file%.uzip}" ]; then
# Load geom_uzip kernel module if needed
- kldstat -q -m g_uzip || kldload geom_uzip || err 1 "geom_uzip failed to load."
+ kldstat -q -m g_uzip || kldstat -q -m geom_uzip || kldload geom_uzip || err 1 "geom_uzip failed to load."
_dev="/dev/${_md}.uzip"
fi
for _i in `df ${_file} 2>/dev/null`; do _fs=${_i}; done
@@ -108,7 +108,7 @@
return
fi
- kldstat -q -m g_md || kldload geom_md || err 1 "geom_md failed to load."
+ kldstat -q -m g_md || kldstat -q -m geom_md || kldload geom_md || err 1 "geom_md failed to load."
for _md in ${_mdconfig_list}; do
init_variables ${_md}
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070823105823.BF2A04538A>
