#!/bin/sh
# Copyright (C) 2003,2004 SpeedSix Software Ltd.
#
# Uninstall SpeedSix Monsters for Discreet Burn on Linux
#

echo
echo "Un-installing SpeedSix Monsters V5.0 for Discreet Burn on Linux"
echo "==============================================================="
echo "     Please consult the release notes for more information."
echo

if [ "`whoami`" != "root" ]; then
        echo "You need to be root to run this script. You can become root"
        echo "by using the command su. Please do this, then restart the"
        echo "un-installation with ./uninstall_s6"
        exit 1
fi

echo
echo -n "Are you sure you want to un-install? [y or n] > "
read inp
case $inp in
    y*) break;;
    *) echo "OK ... leaving everything installed ... "; exit 1;;
esac
echo

rpm -ev discreetlinuxbase
rpm -ev burnlinuxmonsters
rpm -ev discreetlinuxmonstersdata

echo
echo "Un-install completed."
echo
exit 0
