Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 6a7f97b10354eb8e3b126190c18cb8b2 > scriptlet

kernel-smp-2.4.21.0.33mdk-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.33mdksmp/build 
if [ -L $BUILD ]; then
	rm -f $BUILD
fi

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

exit 0

POSTIN

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

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

POSTUN

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