aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAxMod3DPrint <ax@darknetweb.co.uk>2018-12-17 19:28:29 +0000
committerKevin O'Connor <kevin@koconnor.net>2019-01-10 10:15:29 -0500
commit0ba1f5109d639ce92b7efe3ab88057e15694f4c4 (patch)
treed64a3a655fc70f5c92528bf2a561832a6627be9c /scripts
parent15da5cc5aae7bf895da97eee4e32657aac5f2f6c (diff)
downloadkutter-0ba1f5109d639ce92b7efe3ab88057e15694f4c4.tar.gz
kutter-0ba1f5109d639ce92b7efe3ab88057e15694f4c4.tar.xz
kutter-0ba1f5109d639ce92b7efe3ab88057e15694f4c4.zip
scripts: Add BASH uninstall Script for RasPi
Signed-off-by: Ax Smith-Laffin (AxMod3dPrint) <ax@darknetweb.co.uk> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/klipper-uninstall.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/klipper-uninstall.sh b/scripts/klipper-uninstall.sh
new file mode 100755
index 00000000..60fee7c7
--- /dev/null
+++ b/scripts/klipper-uninstall.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Uninstall script for raspbian/debian type installations
+
+# Stop Klipper Service
+echo "#### Stopping Klipper Service.."
+sudo service klipper stop
+
+# Remove Klipper from Startup
+echo
+echo "#### Removing Klipper from Startup.."
+sudo update-rc.d -f klipper remove
+
+# Remove Klipper from Services
+echo
+echo "#### Removing Klipper Service.."
+sudo rm -f /etc/init.d/klipper /etc/default/klipper
+
+# Notify user of method to remove Klipper source code
+echo
+echo "The Klipper system files have been removed."
+echo
+echo "The following command is typically used to remove local files:"
+echo " rm -rf ~/klippy-env ~/klipper"