Sophie

Sophie

distrib > Mandriva > cs4.0 > x86_64 > by-pkgid > db864811ca7f3f870840a5b98114c474 > scriptlet

glibc-devel-2.3.6-3mdk.x86_64.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
if [ -L /usr/include/asm-x86_64 ]; then
  rm -f /usr/include/asm-x86_64
fi
if [ -L /usr/include/asm-i386 ]; then
  rm -f /usr/include/asm-i386
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