PREIN
/bin/ash
# test(1) and echo(1) are built-ins
if [ -d /lib64 ] && [ ! -f /lib64/libnss_files-2.3.6.so ]; then
echo > /lib64/glibc.upgraded
fi
POSTIN
/bin/ash
if [ "$1" -gt 1 ]; then
# migrate /etc/ld.so.conf to include the new /etc/ld.so.conf.d/
# without external commands but for removing the temporary file
ldso_conf=/etc/ld.so.conf
while read i; do
[ "$i" = "include ld.so.conf.d/*.conf" ] && keep=1
echo $i
done < $ldso_conf > $ldso_conf-
if [ -z "$keep" ]; then
echo "include ld.so.conf.d/*.conf" > $ldso_conf
while read i; do
echo $i
done < $ldso_conf- >> $ldso_conf
fi
[ -x /bin/rm ] && /bin/rm -f $ldso_conf-
fi
/sbin/ldconfig
if [ "$1" -gt 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"
LC_ALL=C /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 /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
fi
[ -x /bin/rm ] && /bin/rm -f /lib64/glibc.upgraded
# always generate the gconv-modules.cache
/usr/sbin/iconvconfig -o /usr/lib64/gconv/gconv-modules.cache --nostdlib /usr/lib64/gconv