From 761b350c806afafaeeb88edd8f43707f35da93a3 Mon Sep 17 00:00:00 2001 From: JamesH1978 <87171443+JamesH1978@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:44:58 +0000 Subject: [PATCH] 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 --- scripts/flash-linux.sh | 5 +++++ 1 file changed, 5 insertions(+) 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