1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/bin/sh
set -e
if [ "$1" = "remove" ]; then
if grep -q '^/lib64$' /etc/ld.so.conf 2> /dev/null; then
if grep -v '^/lib64$' /etc/ld.so.conf > /etc/ld.so.conf-amd64-libs-tmp; then
chmod 0644 /etc/ld.so.conf-amd64-libs-tmp
mv /etc/ld.so.conf-amd64-libs-tmp /etc/ld.so.conf
else
rm -f /etc/ld.so.conf
fi
fi
if grep -q '^/usr/lib64$' /etc/ld.so.conf 2> /dev/null; then
if grep -v '^/usr/lib64$' /etc/ld.so.conf > /etc/ld.so.conf-amd64-libs-tmp; then
chmod 0644 /etc/ld.so.conf-amd64-libs-tmp
mv /etc/ld.so.conf-amd64-libs-tmp /etc/ld.so.conf
else
rm -f /etc/ld.so.conf
fi
fi
if grep -q '^/usr/X11R6/lib64$' /etc/ld.so.conf 2> /dev/null; then
if grep -v '^/usr/X11R6/lib64$' /etc/ld.so.conf > /etc/ld.so.conf-amd64-libs-tmp; then
chmod 0644 /etc/ld.so.conf-amd64-libs-tmp
mv /etc/ld.so.conf-amd64-libs-tmp /etc/ld.so.conf
else
rm -f /etc/ld.so.conf
fi
fi
rm -f /etc/ld.so.conf-amd64-libs-tmp
ldconfig
fi
#DEBHELPER#
|