Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > dc2c4531d4663aed30852eb62d7c63c9 > scriptlet

kernel-multimedia-2.6.12-12.mm.2mdk-1-1mdk.x86_64.rpm

PREUN

/bin/sh
/sbin/installkernel -a -R -S -c 2.6.12-12.mm.2mdk
exit 0

POSTIN

/bin/sh
/sbin/installkernel -a -s -c -L 2.6.12-12.mm.2mdk
# hack to write bootsplash image on ppc (nobody is going to fix it on the proper places anyway)
# we take the resolution from current fbresolution
if [ "`uname -m`" = "ppc" ]; then 
	resolution=`fbresolution`
	/usr/share/bootsplash/scripts/make-boot-splash /boot/initrd-2.6.12-12.mm.2mdk.img $resolution
fi
for mod in mousedev psmouse pcspkr 
    do 
	grep -q -s "$mod" /etc/modprobe.preload || 	/bin/echo -e "\n$mod" >> /etc/modprobe.preload
    done
grep "^realcap"  /etc/modprobe.preload &> /dev/null
if [ $? -eq 0 ] ; then
	perl -pi -e 's;realcap;realtime;' /etc/modprobe.preload
fi
grep "^realtime"  /etc/modprobe.preload &> /dev/null
if [ $? -ne 0 ] ; then
    	grep "^capability"  /etc/modprobe.preload &> /dev/null
    	if [ $? -ne 0 ] ; then
	   /bin/echo -e "\nPreloading capability security module,"
	   /bin/echo -e "if you want to activate realtime capabilities"
	   /bin/echo -e "comment out/delete the line containing capability"
	   /bin/echo -e "and add on a new line \"realtime\", and adjust"
	   /bin/echo -e "the realtime module options in /etc/modprobe.conf."
	   
	   /bin/echo -e "\ncapability" >> /etc/modprobe.preload
	fi
fi

POSTUN

/bin/sh
/sbin/kernel_remove_initrd 2.6.12-12.mm.2mdk