mirror of
git://soft.sys114.com/klipper
synced 2026-02-12 01:50:26 +09:00
ODROID: debian: Add Debian package scripts
- Update klipper to v0.13.0 Signed-off-by: YoungSoo Shin <shinys000114@gmail.com> Change-Id: I8847a248fb622a8944e07a1fd858949b93629b86
This commit is contained in:
21
debian/klipper-mcu.service
vendored
Normal file
21
debian/klipper-mcu.service
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#Systemd klipper linux mcu Service
|
||||
|
||||
[Unit]
|
||||
Description=Starts the MCU Linux firmware for klipper on startup
|
||||
Documentation=https://www.klipper3d.org/RPi_microcontroller.html
|
||||
Before=klipper.service
|
||||
ConditionFileIsExecutable=/usr/share/klipper/firmware/LINUX/klipper_mcu
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=KLIPPER_HOST_MCU_SERIAL=/tmp/klipper_host_mcu
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/share/klipper/firmware/LINUX/klipper_mcu -r -I ${KLIPPER_HOST_MCU_SERIAL}
|
||||
ExecStop=sh -c 'echo "FORCE_SHUTDOWN" > ${KLIPPER_HOST_MCU_SERIAL}'
|
||||
ExecStop=sleep 1
|
||||
TimeoutStopSec=2
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Reference in New Issue
Block a user