#!/bin/sh
#CClock Uninstaller
#

install_file="/boot/home/config/bin/CClock"
install_path="/boot/home/config/bin/"
boot_script="/boot/home/config/boot/UserBootscript"
here_path="$(echo $0 | sed -e 's/\/Uninstall$//')"
script_temp="$here_path/UserBootScript"
cclock_id="#CClock_Install_Script_Created"
source_file="$here_path/CClock"

if alert --info "Uninstall CClock?" "OK" "Cancel"
then
	rm $install_file
	egrep -v "$cclock_id" $boot_script > $script_temp
	mv $script_temp $boot_script 
	alert --info "Uninstalled" "OK" 
else
	alert --info "Uninstall Canceled" "OK"
fi
