Skip to content

Commit

Permalink
scripts: Add BASH uninstall Script for RasPi
Browse files Browse the repository at this point in the history
Signed-off-by: Ax Smith-Laffin (AxMod3dPrint) <[email protected]>
Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
ViperWorx authored and KevinOConnor committed Jan 10, 2019
1 parent 15da5cc commit 0ba1f51
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/klipper-uninstall.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0ba1f51

Please sign in to comment.