summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2015-11-02 21:26:10 +0000
committerdteske <dteske@FreeBSD.org>2015-11-02 21:26:10 +0000
commitc9f63adc188afbad259e9af9204e224f60f71898 (patch)
tree92d3ba05cec3fe28ad302fa9d087e3a710bb1f02 /etc
parent99e14b36bdc47276b23b78d152193df025a1f8eb (diff)
downloadFreeBSD-src-c9f63adc188afbad259e9af9204e224f60f71898.zip
FreeBSD-src-c9f63adc188afbad259e9af9204e224f60f71898.tar.gz
MFC r290163: Ignore per-mdN settings in mdconfig[2] startup
PR: base/189696 Submitted by: ganael.laplanche@martymac.org
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/mdconfig2
-rwxr-xr-xetc/rc.d/mdconfig22
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.d/mdconfig b/etc/rc.d/mdconfig
index 627da87..fecdef6 100755
--- a/etc/rc.d/mdconfig
+++ b/etc/rc.d/mdconfig
@@ -186,6 +186,8 @@ if [ -z "${_mdconfig_list}" ]; then
sort_lite -nk1.12`
do
_mdconfig_unit=${_mdconfig_config#mdconfig_md}
+ [ "${_mdconfig_unit#*[!0-9]}" = "$_mdconfig_unit" ] ||
+ continue
_mdconfig_list="$_mdconfig_list md$_mdconfig_unit"
done
_mdconfig_list="${_mdconfig_list# }"
diff --git a/etc/rc.d/mdconfig2 b/etc/rc.d/mdconfig2
index 85fd07f..234459f 100755
--- a/etc/rc.d/mdconfig2
+++ b/etc/rc.d/mdconfig2
@@ -216,6 +216,8 @@ if [ -z "${_mdconfig2_list}" ]; then
sort_lite -nk1.12`
do
_mdconfig2_unit=${_mdconfig2_config#mdconfig_md}
+ [ "${_mdconfig2_unit#*[!0-9]}" = "$_mdconfig2_unit" ] ||
+ continue
_mdconfig2_list="$_mdconfig2_list md$_mdconfig2_unit"
done
_mdconfig2_list="${_mdconfig2_list# }"
OpenPOWER on IntegriCloud