Files
BitDay-Linux/uninstall.sh
T
Chen Asraf 3fe89cb761 Added base
2013-12-29 11:04:57 +02:00

42 lines
818 B
Bash
Executable File

#!/bin/sh
pwd=`pwd`
sep="--------------------------------------------------------------------------"
echo $sep
echo "*** 8bit Day Wallpaper Rotator for Linux ***"
echo $sep
echo
echo "This will revert all the changes."
echo
read -p "Are you sure that's what you want? [y/n] " yn
case $yn in
[Yy]* )
echo
echo "Removing tasks..."
line="${pwd}/update.sh"
crontab -l | grep -v "$line1" | crontab -
if [ -f /etc/pm/sleep.d/RotatingWallpaper.sh ]; then
echo "We need root permissions to delete '/etc/pm/sleep.d/RotatingWallpaper.sh': "
sudo -k sh -c "rm /etc/pm/sleep.d/RotatingWallpaper.sh"
fi
;;
esac
echo
read -p "Delete this directory and its files? [y/n] " yn
case $yn in
[Yy]* )
echo "rm -R $pwd"
;;
esac
echo
echo "Done! We're sorry to see you go!"