# newer module-init-tools barf at files missing .conf suffix
# (and rightfully so)
rm -f /etc/modprobe.d/alsa-modindex~
for suffix in "" .rpmnew .rpmsave; do
[ -f "/etc/modprobe.d/alsa-modindex$suffix" ] && {
echo '*** migrating configuration, please check:'
mv -v "/etc/modprobe.d/alsa-modindex.conf" "/etc/modprobe.d/alsa-modindex.rpmorig"
mv -v "/etc/modprobe.d/alsa-modindex$suffix" "/etc/modprobe.d/alsa-modindex.conf"
exit 0
} ||:
done