#!/bin/sh if [ "$1" != "upgrade" ] then # End automatically added section echo -e "Selecting menu location" maemo-select-menu-location whitestork.desktop if [ -f /usr/share/applications/uri-action-defaults.list ] then if [ -z $(grep mdict=hildon-whitestork.desktop /usr/share/applications/uri-action-defaults.list) ] then echo -e "Adding mdict URI action - uri-action-defaults.list" echo -en "\nmdict=hildon-whitestork.desktop" >> /usr/share/applications/uri-action-defaults.list else echo -en "\n\nThere is an entry about WhiteStork in uri-action already ... \n\n" fi if [ -z `grep 'mdict=hildon-whitestork.desktop' /usr/share/applications/schemeinfo.cache` ] then echo -e "Adding mdict URI action - schemeinfo.cache" echo -en "\nmdict=hildon-whitestork.desktop" >> /usr/share/applications/schemeinfo.cache else echo -en "\n\nThere is an entry about WhiteStork in schemeinfo already ... \n\n" fi fi fi