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

( cd usr/lib ; rm -rf libkmidbackend.so.0 )
( cd usr/lib ; ln -sf libkmidbackend.so.0.1.0 libkmidbackend.so.0 )
( cd usr/lib ; rm -rf libkmidbackend.so )
( cd usr/lib ; ln -sf libkmidbackend.so.0 libkmidbackend.so )
( cd usr/share/doc/HTML/sv/kmid ; rm -rf common )
( cd usr/share/doc/HTML/sv/kmid ; ln -sf /usr/share/doc/HTML/sv/common common )
( cd usr/share/doc/HTML/en/kmid ; rm -rf common )
( cd usr/share/doc/HTML/en/kmid ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/uk/kmid ; rm -rf common )
( cd usr/share/doc/HTML/uk/kmid ; ln -sf /usr/share/doc/HTML/uk/common common )
( cd usr/share/doc/HTML/es/kmid ; rm -rf common )
( cd usr/share/doc/HTML/es/kmid ; ln -sf /usr/share/doc/HTML/es/common common )
( cd usr/share/doc/HTML/pt_BR/kmid ; rm -rf common )
( cd usr/share/doc/HTML/pt_BR/kmid ; ln -sf /usr/share/doc/HTML/pt_BR/common common )
