aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJamesH1978 <87171443+JamesH1978@users.noreply.github.com>2023-02-23 16:44:58 +0000
committerGitHub <noreply@github.com>2023-02-23 11:44:58 -0500
commit761b350c806afafaeeb88edd8f43707f35da93a3 (patch)
treeb70d84cf8fdee71638fcc73252c5e6d44e0c1148 /scripts
parent0a9a0eac3dadd9aaf5182b8eb6f51dc93ab66547 (diff)
downloadkutter-761b350c806afafaeeb88edd8f43707f35da93a3.tar.gz
kutter-761b350c806afafaeeb88edd8f43707f35da93a3.tar.xz
kutter-761b350c806afafaeeb88edd8f43707f35da93a3.zip
scripts: Update flash-linux.sh to restart new systemd service (#6049)
This is an update to the script that looks for the new systemd service and restarts it if appropriate. Signed-off-by: James Hartley <james@hartleyns.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/flash-linux.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/flash-linux.sh b/scripts/flash-linux.sh
index 032b705f..cc808aa8 100755
--- a/scripts/flash-linux.sh
+++ b/scripts/flash-linux.sh
@@ -24,3 +24,8 @@ 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