if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd opt/hexinator/lib ; rm -rf libQt5Core.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Core.so libQt5Core.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5DBus.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5DBus.so libQt5DBus.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Gui.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Gui.so libQt5Gui.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Network.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Network.so libQt5Network.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5OpenGL.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5OpenGL.so libQt5OpenGL.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Positioning.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Positioning.so libQt5Positioning.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5PrintSupport.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5PrintSupport.so libQt5PrintSupport.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Qml.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Qml.so libQt5Qml.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Quick.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Quick.so libQt5Quick.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5QuickWidgets.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5QuickWidgets.so libQt5QuickWidgets.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Sensors.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Sensors.so libQt5Sensors.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Sql.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Sql.so libQt5Sql.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5WebChannel.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5WebChannel.so libQt5WebChannel.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5WebEngineCore.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5WebEngineCore.so libQt5WebEngineCore.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5WebEngineWidgets.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5WebEngineWidgets.so libQt5WebEngineWidgets.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Widgets.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Widgets.so libQt5Widgets.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5XcbQpa.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5XcbQpa.so libQt5XcbQpa.so.5 )
( cd opt/hexinator/lib ; rm -rf libQt5Xml.so.5 )
( cd opt/hexinator/lib ; ln -sf libQt5Xml.so libQt5Xml.so.5 )
( cd opt/hexinator/lib ; rm -rf libcrypto.so )
( cd opt/hexinator/lib ; ln -sf libcrypto.so.1 libcrypto.so )
( cd opt/hexinator/lib ; rm -rf libcrypto.so.1 )
( cd opt/hexinator/lib ; ln -sf libcrypto.so.1.0.0 libcrypto.so.1 )
( cd opt/hexinator/lib ; rm -rf libssl.so )
( cd opt/hexinator/lib ; ln -sf libssl.so.1 libssl.so )
( cd opt/hexinator/lib ; rm -rf libssl.so.1 )
( cd opt/hexinator/lib ; ln -sf libssl.so.1.0.0 libssl.so.1 )
( cd usr/bin ; rm -rf hexinator )
( cd usr/bin ; ln -sf /opt/hexinator/bin/hexinator hexinator )
