Sophie

Sophie

distrib > Mandriva > cs4.0 > x86_64 > by-pkgid > 2f6ba9155ea94837b4e9c31221541c48 > scriptlet

sound-scripts-0.35-1mdk.noarch.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service sound-scripts $1 sound 
/usr/share/rpm-helper/del-service sound-scripts $1 alsa

POSTIN

/bin/sh
if [ $1 = 1 ]; then /sbin/chkconfig --add sound; fi;if [ $1 = 1 ]; then /sbin/chkconfig --add alsa; fi;
# only needed on upgrade
if [ $1 != 0 ]; then
	# Handle boot sequence changes on upgrade
	if [[ -f /etc/rc3.d/S71sound ]] && [[ -f /etc/rc5.d/S71sound ]] && egrep -q 'chkconfig: [0-9]+ 18' /etc/init.d/sound; then chkconfig --add sound || : ; fi; 
	if [[ -f /etc/rc3.d/S70alsa ]] && [[ -f /etc/rc5.d/S70alsa ]] && egrep -q 'chkconfig: [0-9]+ 17' /etc/init.d/alsa; then chkconfig --add alsa || : ; fi; 
fi