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>
This commit is contained in:
JamesH1978 2023-02-23 16:44:58 +00:00 committed by GitHub
parent 0a9a0eac3d
commit 761b350c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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