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/share/doc/HTML/et/knights ; rm -rf common )
( cd usr/share/doc/HTML/et/knights ; ln -sf /usr/share/doc/HTML/et/common common )
( cd usr/share/doc/HTML/uk/knights ; rm -rf common )
( cd usr/share/doc/HTML/uk/knights ; ln -sf /usr/share/doc/HTML/uk/common common )
( cd usr/share/doc/HTML/en/knights ; rm -rf common )
( cd usr/share/doc/HTML/en/knights ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/pt_BR/knights ; rm -rf common )
( cd usr/share/doc/HTML/pt_BR/knights ; ln -sf /usr/share/doc/HTML/pt_BR/common common )
( cd usr/share/apps/knights/themes ; rm -rf default.desktop )
( cd usr/share/apps/knights/themes ; ln -sf gray.desktop default.desktop )
