#! /bin/sh -e case "$1" in remove) PATH_DESKTOPS="/usr/local/share/applications/" PATH_DESKTOPS_ALTERNATIVE="/usr/share/gnome/apps/" PATH_DIRECTORIES="/usr/local/share/desktop-directories/" PATHDESKTOP="/usr/share/applications/" PATHMENU="/etc/xdg/menus/applications-merged/" LLIUREXMENU="/usr/share/lliurex-smart/menus/" PATHLINK="/usr/bin/" #Delete files created by smart.autopackage because them location are wrong for fichero in `find $PATH_DESKTOPS -name "*smarttech*.desktop.old"` ; do auxname=$(echo $fichero | sed -e "s%\(.*smarttech.*\.desktop\)\.old$%\1%g") mv $fichero $auxname done for fichero in `find $PATH_DESKTOPS_ALTERNATIVE -name "*smarttech*.desktop"` ; do auxname=$(echo $fichero | sed -e "s%\(.*smarttech.*\.desktop\)\.old$%\1%g") mv $fichero $auxname done for fichero in `find $PATH_DIRECTORIES -name "*smarttech*.desktop"` ; do auxname=$(echo $fichero | sed -e "s%\(.*smarttech.*\.desktop\)\.old$%\1%g") mv $fichero $auxname done unud=/var/lib/update-notifier/user.d if [ -d $unud ]; then rm -f "$unud/lliurex-smart" fi ;; upgrade|failed-upgrade|deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0