#!/bin/sh

# this script will uninstall ilsundal's PPP-in-a-box from your system.

checkforroot() {
        if [ "$EUID" -ne 0 ]; then
                echo "You must be root to uninstall this package."
                exit 1
        fi
}

checkforroot

clear
echo Removing PPP-in-a-box files from /etc/ppp ...
rm /etc/ppp/README
rm /etc/ppp/chap-secrets
rm /etc/ppp/connect
rm /etc/ppp/options
rm /etc/ppp/pap-secrets
rm /etc/ppp/ppp
rm /etc/ppp/ppp.down
rm /etc/ppp/ppp.minicom 
rm /etc/ppp/uninstallme
echo Removing PPP-in-a-box symbolic links from /usr/local/sbin ...
rm /usr/local/sbin/ppp-up
rm /usr/local/sbin/ppp-down
echo
echo "PPP-in-a-box uninstalled ..  :(  <sniff, sniff>"
echo
