Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > f3b0490c57af21bd67a34474894b2715 > scriptlet

glibc-2.2.5-28mdk.x86_64.rpm

PREIN

/sbin/sash
if [ ! -f /lib64/libnss_files-2.2.5.so ]; then echo > /lib64/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 /lib64/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"
	/sbin/service --full-restart-all
	# if X is running, reset the fontpath to its default value
	[[ -n "$DISPLAY" ]] && xset fp default        
    fi
    for i in /lib64/libnss_nis.so.1 /lib64/libnss_files.so.1 /lib64/libnss_dns.so.1 /lib64/libnss_compat.so.1;do
	if [ -e $i ] && [ ! -L $i ];then
	    /bin/rm -f $i
	fi
    done

fi

rm -f /lib64/glibc.upgraded