PREIN
/sbin/sash
if [ ! -f /lib/libnss_files-2.3.1.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
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
rm -f /lib/glibc.upgraded