octoprint-klipper-docker/start.sh

11 lines
358 B
Bash

#Copy over Initial Printer Config
cp -n /printer.cfg /home/octoprint/.octoprint/printer.cfg
#Start Unit
unitd --no-daemon --control unix:/var/run/control-unit.sock &
#Apply Primary Full Configuration
curl -X PUT --data-binary @/unitconfig.json --unix-socket /var/run/control-unit.sock http://localhost/config
#Start OctoPrint and Klipper
python3 /start.py