Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > main > by-pkgid > 59336472afc0d3a666917b53a8aab948 > scriptlet

glibc-devel-2.3.4-8mdk.i586.rpm

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.11 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