Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 667be604faa56bdabd78adf573834417 > scriptlet

kernel-smp-2.4.21.0.13mdk-1-1mdk.ppc.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

BUILD=/lib/modules/2.4.21-0.13mdksmp/build 
if [ -l $BUILD ]; then
	rm -f $BUILD
fi

[[ -n $REMOVE ]] && /sbin/installkernel -a -R -c 2.4.21-0.13mdksmp

exit 0

POSTIN

/bin/sh
cd /boot
if [ -x /sbin/installkernel ];then
	      /sbin/installkernel -a -c 2.4.21-0.13mdksmp
fi

KERNEL_SOURCE=/usr/src/linux-2.4.21-0.13mdk
if [ -d $KERNEL_SOURCE ]; then
	ln -sf $KERNEL_SOURCE /lib/modules/2.4.21-0.13mdksmp/build 
fi

POSTUN

/bin/sh
cd /boot
if [ -f initrd-2.4.21-0.13mdksmp.img ];then
		rm -f initrd-2.4.21-0.13mdksmp.img
fi