mirror of
https://github.com/Threnklyn/BitDay-Linux.git
synced 2026-05-23 06:08:28 +02:00
Added base
This commit is contained in:
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/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!"
|
||||
Reference in New Issue
Block a user