Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 6708f7741ee069f9fe6559ac39729a83 > scriptlet

kernel-BOOT-2.4.19.32mdk-1-1mdk.x86_64.rpm

PREUN

/bin/sh
/sbin/modprobe loop 2> /dev/null > /dev/null

REMOVE=
if [ -f /etc/sysconfig/system ];then
		source /etc/sysconfig/system
		[[ "$CLASS" = "beginner" ]] && REMOVE=yes
fi
if [ -f /etc/sysconfig/installkernel ];then
		source /etc/sysconfig/installkernel
		[[ "$AUTOREMOVE" = [Yy][Ee][Ss] ]] && REMOVE=yes
		[[ "$AUTOREMOVE" = [Nn][Oo] ]] && REMOVE=
fi

[[ -n $REMOVE ]] && /sbin/installkernel -a -R -c 2.4.19-32mdkBOOT

exit 0

POSTUN

/bin/sh
cd /boot
if [ -f initrd-2.4.19-32mdkBOOT.img ];then
		rm -f initrd-2.4.19-32mdkBOOT.img
fi