Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > main > by-pkgid > 60aada4a213606be1f883548b3697956 > scriptlet

glibc-2.3.3-10mdk.i586.rpm

PREIN

/sbin/sash
if [ ! -f /lib/libnss_files-2.3.3.so ]; then echo > /lib/glibc.upgraded; fi

POSTIN

/bin/sh
/sbin/ldconfig


if [ "$1" -ge 1 ]; then
  # On upgrade the services doesn't work because libnss couldn't be
  # loaded anymore.
    if [ -f /lib/glibc.upgraded ]; then
	# if X is running define the fontpath to something xfs-independent
	[[ -n "$DISPLAY" ]] && xset fp= /usr/X11R6/lib/X11/fonts/misc
	echo "Restarting all the services of this run level"
	/usr/sbin/glibc-post-upgrade
	# if X is running, reset the fontpath to its default value
	[[ -n "$DISPLAY" ]] && xset fp default        
    fi
    if [ -f /bin/rm ]; then
      for i in /lib/libnss_nis.so.1 /lib/libnss_files.so.1 /lib/libnss_dns.so.1 /lib/libnss_compat.so.1; do
        if [ -e $i ] && [ ! -L $i ]; then
          /bin/rm -f $i
	fi
      done
    fi
fi

rm -f /lib/glibc.upgraded