mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-01-31 07:58:42 +03:00
plus4的klipper版本
This commit is contained in:
@@ -7,10 +7,17 @@ if [ "$EUID" -ne 0 ]; then
|
||||
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
|
||||
cp ${out}/klipper.elf /usr/local/bin/klipper_mcu
|
||||
sync
|
||||
|
||||
# Restart (if system install script present)
|
||||
@@ -24,3 +31,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
|
||||
|
||||
Reference in New Issue
Block a user