mirror of
https://github.com/Threnklyn/BitDay-Linux.git
synced 2026-05-18 20:13:27 +02:00
42 lines
818 B
Bash
Executable File
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!"
|