if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime &> /dev/null
fi

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database &> /dev/null
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor &> /dev/null
fi
	# Update the scrollkeeper database (Remove stale pieces)
	if [ -x usr/bin/scrollkeeper-update ]; then
		usr/bin/scrollkeeper-update > /dev/null 2>&1
	fi
#
( cd usr/lib ; rm -rf libpurple.so.0 )
( cd usr/lib ; ln -sf libpurple.so.0.7.6 libpurple.so.0 )
( cd usr/lib ; rm -rf libgnt.so )
( cd usr/lib ; ln -sf libgnt.so.0.0.0 libgnt.so )
( cd usr/lib ; rm -rf libpurple-client.so.0 )
( cd usr/lib ; ln -sf libpurple-client.so.0.7.6 libpurple-client.so.0 )
( cd usr/lib ; rm -rf libgnt.so.0 )
( cd usr/lib ; ln -sf libgnt.so.0.0.0 libgnt.so.0 )
( cd usr/lib ; rm -rf libpurple-client.so )
( cd usr/lib ; ln -sf libpurple-client.so.0.7.6 libpurple-client.so )
( cd usr/lib/purple-2 ; rm -rf libymsg.so.0 )
( cd usr/lib/purple-2 ; ln -sf libymsg.so.0.0.0 libymsg.so.0 )
( cd usr/lib/purple-2 ; rm -rf libjabber.so )
( cd usr/lib/purple-2 ; ln -sf libjabber.so.0.0.0 libjabber.so )
( cd usr/lib/purple-2 ; rm -rf liboscar.so )
( cd usr/lib/purple-2 ; ln -sf liboscar.so.0.0.0 liboscar.so )
( cd usr/lib/purple-2 ; rm -rf libjabber.so.0 )
( cd usr/lib/purple-2 ; ln -sf libjabber.so.0.0.0 libjabber.so.0 )
( cd usr/lib/purple-2 ; rm -rf liboscar.so.0 )
( cd usr/lib/purple-2 ; ln -sf liboscar.so.0.0.0 liboscar.so.0 )
( cd usr/lib/purple-2 ; rm -rf libymsg.so )
( cd usr/lib/purple-2 ; ln -sf libymsg.so.0.0.0 libymsg.so )
( cd usr/lib ; rm -rf libpurple.so )
( cd usr/lib ; ln -sf libpurple.so.0.7.6 libpurple.so )
