#! /bin/sh

if [ ! -f /sbin/ldconfig.new ]; then
    exit 0
fi

if [ "x$1" = xconfigure ]; then
    case "$2" in
    1.5.* | 1.6.* | '' )
	echo Expect some cache has wrong version warnings if upgrading
	echo to version 1.7.0 or later for the first time.
	;;
    esac
fi

cd /lib
if [ -f ld.so.VERSION ]; then
    mv -f ld.so.VERSION ld.so
    ln -f ld.so ld.so.VERSION
fi
mv -f ld-linux.so.VERSION ld-linux.so.VMAJOR
ln -f ld-linux.so.VMAJOR ld-linux.so.VERSION

cd /sbin
mv -f ldconfig.new ldconfig

ldconfig

install-info --quiet --section "Development" "Development" \
    /usr/info/ld.so.info.gz
