-
Notifications
You must be signed in to change notification settings - Fork 16
/
uninstall.sh
executable file
·42 lines (34 loc) · 1012 Bytes
/
uninstall.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
#
# OctoEverywhere for Klipper!
#
# This script works for any setup of OctoEverywhere, the normal plugin install, companion install, or a Creality install.
# The script will automatically find all OctoEverywhere instances on this device and help you remove them.
#
# If you need help, feel free to contact us at support@octoeverywhere.com
#
# These must stay in sync with ./install.sh!
IS_K1_OS=0
if grep -Fqs "ID=buildroot" /etc/os-release
then
IS_K1_OS=1
fi
c_default=$(echo -en "\e[39m")
c_green=$(echo -en "\e[92m")
c_yellow=$(echo -en "\e[93m")
c_magenta=$(echo -en "\e[35m")
c_red=$(echo -en "\e[91m")
c_cyan=$(echo -en "\e[96m")
echo ""
echo ""
echo -e "${c_yellow}Starting The OctoEverywhere Uninstaller${c_default}"
echo ""
echo ""
# Our installer script has all of the logic to update system deps, py deps, and the py environment.
# So we use it with a special flag to do updating.
if [[ $IS_K1_OS -eq 1 ]]
then
sh ./install.sh -uninstall
else
./install.sh -uninstall
fi