#!/bin/sh
# postinst script for knots2
#
# see: dh_installdeb(1)

set -e

/usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor || true
/bin/chmod 755 /usr/share/knots/rotate
/bin/chmod 755 /usr/share/knots/discover
oldversion="$2"
if [ -z "$oldversion" ]; then
  maemo-select-menu-location knots2.desktop || true
  echo "Please visit http://nakkiboso.com/knots2 for additional software needed to run Knots." > /tmp/knotstmp.txt
  /usr/bin/maemo-confirm-text /tmp/knotstmp.txt
  rm /tmp/knotstmp.txt
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0


