PREIN
/bin/sh
if [ -L /usr/include/scsi ]; then
rm -f /usr/include/scsi
fi
if [ -L /usr/include/sound ]; then
rm -f /usr/include/sound
fi
if [ -L /usr/include/linux ]; then
rm -f /usr/include/linux
fi
if [ -L /usr/include/asm ]; then
rm -f /usr/include/asm
fi
if [ -L /usr/include/asm-generic ]; then
rm -f /usr/include/asm-generic
fi
exit 0
POSTIN
/bin/sh
cd /boot
rm -f kernel.h
ln -snf kernel.h-2.6.12 kernel.h
/sbin/service kheader start 2>/dev/null >/dev/null || :
exit 0
POSTUN
/bin/sh
if [ $1 = 0 ];then
if [ -L /boot/kernel.h -a `ls -l /boot/kernel.h 2>/dev/null| awk '{ print $11 }'` = "kernel.h-%{kheader}" ]; then
rm -f /boot/kernel.h
fi
fi
exit 0