forked from d-rez/gbz_overlay
-
Notifications
You must be signed in to change notification settings - Fork 5
/
remove.sh
42 lines (31 loc) · 823 Bytes
/
remove.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#get script path
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
cd $SCRIPTPATH
#if not root user, restart script as root
if [ "$(whoami)" != "root" ]; then
echo "Switching to root user..."
sudo bash $SCRIPT
exit 1
fi
#set constants
NONE='\033[00m'
CYAN='\033[36m'
FUSCHIA='\033[35m'
UNDERLINE='\033[4m'
echo
echo "Removing Dependencies..."
echo
rm /usr/local/bin/pngview
echo "Removing Service..."
echo
service retropie-status-overlay stop
systemctl disable retropie-status-overlay
rm /lib/systemd/system/retropie-status-overlay.service
echo
echo "$SCRIPTPATH will be left in place, you are free to manually remove"
echo ""
echo "--------------------------------------------------"
echo "Retropie Status Overlay uninstall complete!"
echo "--------------------------------------------------"