PREUN
/bin/sh
rm -f /lib/modules/2.6.16.45-1smp/modules.*
if [ -x /sbin/new-kernel-pkg ]; then
/sbin/new-kernel-pkg --remove 2.6.16.45-1smp
fi
POSTIN
/bin/sh
mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
ln -sf vmlinuz-2.6.16.45-1smp /boot/vmlinuz
ln -sf System.map-2.6.16.45-1smp /boot/System.map
\
umask 022; \
if [ -e /boot/System.map-2.6.16.45-1smp ]; then \
/sbin/depmod -a -F /boot/System.map-2.6.16.45-1smp 2.6.16.45-1smp; \
else \
if [ -e /boot/System.map ]; then \
/sbin/depmod -a -F /boot/System.map 2.6.16.45-1smp; \
else \
/sbin/depmod -a 2.6.16.45-1smp; \
fi \
fi; \
/sbin/geninitrd -f --initrdfs=rom /boot/initrd-2.6.16.45-1smp.gz 2.6.16.45-1smp
mv -f /boot/initrd /boot/initrd.old 2> /dev/null > /dev/null
ln -sf initrd-2.6.16.45-1smp.gz /boot/initrd
if [ -x /sbin/new-kernel-pkg ]; then
if [ -f /etc/pld-release ]; then
title=$(sed 's/^[0-9.]\+ //' < /etc/pld-release)
else
title='PLD Linux'
fi
ext=''
if [ "$ext" ]; then
title="$title $ext"
fi
/sbin/new-kernel-pkg --initrdfile=/boot/initrd-2.6.16.45-1smp.gz --install 2.6.16.45-1smp --banner "$title"
elif [ -x /sbin/rc-boot ]; then
/sbin/rc-boot 1>&2 || :
fi