Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > 1d754c1b5b2d5e47610a26e71750c11a > scriptlet

kernel-headers-2.4.19-12mdk.x86_64.rpm

PREIN

/bin/sh
[ -L /usr/include/linux ] && rm -f /usr/include/linux
[ -L /usr/include/asm ] && rm -f /usr/include/asm
[ -L /usr/include/asm-generic ] && rm -f /usr/include/asm-generic
[ -L /usr/include/sound ] && rm -f /usr/include/sound
exit 0

POSTIN

/bin/sh
cd /boot
rm -f kernel.h
ln -snf kernel.h-2.4.19 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