Sophie

Sophie

distrib > Mandriva > 2008.0 > i586 > media > main-testing > by-pkgid > 6213a918a4ef30d4b317552ff13447aa > scriptlet

kernel-laptop-2.6.22.14-1.uc1mdv-1-1mdv2008.0.i586.rpm

PREUN

/bin/sh
/sbin/installkernel -R 2.6.22.14-laptop-1.uc1mdv
pushd /boot > /dev/null
if [ -L vmlinuz-laptop ]; then
	if [ $(readlink vmlinuz-laptop) = "vmlinuz-2.6.22.14-laptop-1.uc1mdv" ]; then
		rm -f vmlinuz-laptop
	fi
fi
if [ -L initrd-laptop.img ]; then
	if [ $(readlink initrd-laptop.img) = "initrd-2.6.22.14-laptop-1.uc1mdv.img" ]; then
		rm -f initrd-laptop.img
	fi
fi
popd > /dev/null
if [ -L /lib/modules/2.6.22.14-laptop-1.uc1mdv/build ]; then
	rm -f /lib/modules/2.6.22.14-laptop-1.uc1mdv/build
fi
if [ -L /lib/modules/2.6.22.14-laptop-1.uc1mdv/source ]; then
	rm -f /lib/modules/2.6.22.14-laptop-1.uc1mdv/source
fi
exit 0

POSTIN

/bin/sh
/sbin/installkernel 2.6.22.14-laptop-1.uc1mdv
pushd /boot > /dev/null
if [ -L vmlinuz-laptop ]; then
	rm -f vmlinuz-laptop
fi
ln -sf vmlinuz-2.6.22.14-laptop-1.uc1mdv vmlinuz-laptop
if [ -L initrd-laptop.img ]; then
	rm -f initrd-laptop.img
fi
ln -sf initrd-2.6.22.14-laptop-1.uc1mdv.img initrd-laptop.img
popd > /dev/null
if [ -d /usr/src/linux-2.6.22.14-laptop-1.uc1mdv ]; then
	rm -f /lib/modules/2.6.22.14-laptop-1.uc1mdv/{build,source}
	ln -sf /usr/src/linux-2.6.22.14-laptop-1.uc1mdv /lib/modules/2.6.22.14-laptop-1.uc1mdv/build
	ln -sf /usr/src/linux-2.6.22.14-laptop-1.uc1mdv /lib/modules/2.6.22.14-laptop-1.uc1mdv/source
fi

POSTUN

/bin/sh
/sbin/kernel_remove_initrd 2.6.22.14-laptop-1.uc1mdv