Package libalsa: Scripts

Post install

# 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
Pre install

1
2
3
4
5
6
7
[ ! -f /etc/modutils.d/oss ] || {
	grep -q "^above snd-" /etc/modules.conf && {
		echo '*** /etc/modutils.d/oss found:'
		echo '*** commenting out "above/below snd-*-oss" lines in /etc/modules.conf'
		subst 's/^above snd-.* snd-.*-oss$/#&/' /etc/modules.conf ||:
	} ||:
}