Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 87574e1b774f4b1e164e2521851216c7 > scriptlet

sound-scripts-0.53-1mdv2008.1.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