Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > contrib > by-pkgid > 1a60f766d6843c44cfd4d66aa378bebb > scriptlet

kernel-multimedia-enterprise-2.6.10-3.mm.24mdk-1-1mdk.i586.rpm

PREUN

/bin/sh
/sbin/installkernel -a -R -S -c 2.6.10-3.mm.24mdkenterprise
exit 0

POSTIN

/bin/sh
/sbin/installkernel -a -s -c -L 2.6.10-3.mm.24mdkenterprise
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 [ $? -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 \"realcap\", and adjust"
	   /bin/echo -e "the realcap module options in /etc/modprobe.conf."
	   
	   /bin/echo -e "\ncapability" >> /etc/modprobe.preload
	fi
fi

POSTUN

/bin/sh
/sbin/kernel_remove_initrd 2.6.10-3.mm.24mdkenterprise