#!/bin/sh

set -e

PACKAGE="update-amd-pro-nonpro-17.10-401251-99dfd335"
INSTALL_SCRIPT="$PACKAGE.sh"
AUTOSTART_CONF="$PACKAGE.desktop"

case "$1" in
    remove)
        echo "Remove autostart and sh scripts"
        if [ -f /etc/xdg/autostart/$AUTOSTART_CONF ]; then
            rm -rf /etc/xdg/autostart/$AUTOSTART_CONF
        fi
        if [ -f /usr/bin/$INSTALL_SCRIPT ]; then
            rm -rf /usr/bin/$INSTALL_SCRIPT
        fi
    ;;
esac

# End automatically added section

