aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 18:31:31 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 21:46:37 +0100
commit121edea90cde8295f720ed9d2f2fccca61f66bb4 (patch)
tree0a402b1e894309d15085dd6d06b5305586721626
parentf2d0c76fd98e850fddf0c2fb47ed9dce3fe64274 (diff)
downloadkutter-121edea90cde8295f720ed9d2f2fccca61f66bb4.tar.gz
kutter-121edea90cde8295f720ed9d2f2fccca61f66bb4.tar.xz
kutter-121edea90cde8295f720ed9d2f2fccca61f66bb4.zip
Drop linux "flash" script
-rw-r--r--CHANGELOG.md1
-rwxr-xr-xscripts/flash-linux.sh38
2 files changed, 1 insertions, 38 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3bf0e038..f9d62979 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,3 +35,4 @@ Most changes are breaking.
* Uninstall script
* Init script
* The `make_version.py` script
+* Linux "flash" script
diff --git a/scripts/flash-linux.sh b/scripts/flash-linux.sh
deleted file mode 100755
index bd3b4f63..00000000
--- a/scripts/flash-linux.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-# This script installs the Linux MCU code to /usr/local/bin/
-
-if [ "$EUID" -ne 0 ]; then
- echo "This script must be run as root"
- exit -1
-fi
-set -e
-
-# Setting build output directory
-if [ -z "${1}" ]; then
- out='out'
-else
- out=${1}
-fi
-
-# Install new micro-controller code
-echo "Installing micro-controller code to /usr/local/bin/"
-rm -f /usr/local/bin/klipper_mcu
-cp ${out}/klipper.elf /usr/local/bin/klipper_mcu
-sync
-
-# Restart (if system install script present)
-if [ -f /etc/init.d/klipper_pru ]; then
- echo "Attempting host PRU restart..."
- service klipper_pru restart
-fi
-
-# Restart (if system install script present)
-if [ -f /etc/init.d/klipper_mcu ]; then
- echo "Attempting host MCU restart..."
- service klipper_mcu restart
-fi
-
-if [ -f /etc/systemd/system/klipper-mcu.service ]; then
- echo "Attempting host MCU restart..."
- systemctl restart klipper-mcu
-fi