mdraid/module-setup.sh: install configs from /etc/mdadm.conf.d

/etc/mdadm.conf.d directory is supported since mdadm-3.3
master
Alexander Tsoy 2013-10-03 14:54:42 +04:00 committed by Harald Hoyer
parent d97eb42593
commit 5bcf262d59
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@ install() {
else
[ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf
fi
if [ -d /etc/mdadm.conf.d ]; then
local f
inst_dir /etc/mdadm.conf.d
for f in /etc/mdadm.conf.d/*.conf; do
[ -f "$f" ] || continue
inst "$f"
done
fi
fi

inst_hook pre-udev 30 "$moddir/mdmon-pre-udev.sh"