Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 794d41779c2b25a98902598c4c27087d > scriptlet

lib64x11_6-1.2.1-1.1mdv2009.1.x86_64.rpm

POSTIN

/bin/sh
if  grep -q "^/usr/X11R6/lib$" /etc/ld.so.conf; then
    grep -v "^/usr/X11R6/lib$" /etc/ld.so.conf > /etc/ld.so.conf.new
    mv -f /etc/ld.so.conf.new /etc/ld.so.conf
    /sbin/ldconfig
fi

POSTUN

/bin/sh
if [ "$1" = "0" \
   -a "`grep "^/usr/X11R6/lib$" /etc/ld.so.conf`" != "" ]; then
    grep -v "^/usr/X11R6/lib$" /etc/ld.so.conf > /etc/ld.so.conf.new
    mv -f /etc/ld.so.conf.new /etc/ld.so.conf
    /sbin/ldconfig
fi

#-----------------------------------------------------------