Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-updates > by-pkgid > ee32552bfe514f2540d14ea13f37ae02 > scriptlet

kernel-tmb-desktop586-3.4.52-1.mga2-1-1.mga2.i586.rpm

PREUN

/bin/sh
/sbin/installkernel -R 3.4.52-tmb-desktop586-1.mga2
pushd /boot > /dev/null
if [ -L vmlinuz-tmb-desktop586 ]; then
	if [ "" = "vmlinuz-3.4.52-tmb-desktop586-1.mga2" ]; then
		rm -f vmlinuz-tmb-desktop586
	fi
fi
if [ -L initrd-tmb-desktop586.img ]; then
	if [ "" = "initrd-3.4.52-tmb-desktop586-1.mga2.img" ]; then
		rm -f initrd-tmb-desktop586.img
	fi
fi
popd > /dev/null
if [ -L /lib/modules/3.4.52-tmb-desktop586-1.mga2/build ]; then
	rm -f /lib/modules/3.4.52-tmb-desktop586-1.mga2/build
fi
if [ -L /lib/modules/3.4.52-tmb-desktop586-1.mga2/source ]; then
	rm -f /lib/modules/3.4.52-tmb-desktop586-1.mga2/source
fi
exit 0

POSTIN

/bin/sh
/sbin/installkernel -L 3.4.52-tmb-desktop586-1.mga2
pushd /boot > /dev/null
if [ -L vmlinuz-tmb-desktop586 ]; then
	rm -f vmlinuz-tmb-desktop586
fi
ln -sf vmlinuz-3.4.52-tmb-desktop586-1.mga2 vmlinuz-tmb-desktop586
if [ -L initrd-tmb-desktop586.img ]; then
	rm -f initrd-tmb-desktop586.img
fi
ln -sf initrd-3.4.52-tmb-desktop586-1.mga2.img initrd-tmb-desktop586.img
popd > /dev/null
# create kernel-devel symlinks if matching -devel- rpm is installed
if [ -d /usr/src/3.4.52-tmb-desktop586-1.mga2 ]; then
	rm -f /lib/modules/3.4.52-tmb-desktop586-1.mga2/{build,source}
	ln -sf /usr/src/3.4.52-tmb-desktop586-1.mga2 /lib/modules/3.4.52-tmb-desktop586-1.mga2/build
	ln -sf /usr/src/3.4.52-tmb-desktop586-1.mga2 /lib/modules/3.4.52-tmb-desktop586-1.mga2/source
fi

POSTUN

/bin/sh
/sbin/kernel_remove_initrd 3.4.52-tmb-desktop586-1.mga2
rm -rf /lib/modules/3.4.52-tmb-desktop586-1.mga2 > /dev/null

POSTTRANS

/bin/sh
if [ -x /usr/sbin/dkms_autoinstaller -a -d /usr/src/3.4.52-tmb-desktop586-1.mga2 ]; then
    /usr/sbin/dkms_autoinstaller start 3.4.52-tmb-desktop586-1.mga2
fi