#!/bin/sh

set -e

PACKAGE="update-amd-pro-nonpro-16.60-423303"
INSTALL_SCRIPT="$PACKAGE.sh"
AUTOSTART_CONF="$PACKAGE.desktop"
LOG_FILE="/var/log/$PACKAGE.log"

case "$1" in
    remove)
        echo "Remove autostart, sh scripts, and log file"
        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
        if [ -f $LOG_FILE ]; then
            rm -rf $LOG_FILE
        fi
    ;;
esac

# End automatically added section

