Skip to content

Commit

Permalink
Image: fix klipper pi process compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 5, 2022
1 parent d0a0406 commit 23d6b35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/rpi_mcu/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ install_cleanup_trap

echo_green "Installing RPI MCU service"

pushd /home/pi/klipper
echo "flashing rpi-mcu"
cp -f /home/pi/klipper_config/config/boards/rpi/firmware.config /home/pi/klipper/.config
make olddefconfig
make clean
make flash
popd

pushd /home/${BASE_USER}/klipper
sudo cp "./scripts/klipper-mcu-start.sh" /etc/init.d/klipper_mcu
sudo update-rc.d klipper_mcu defaults
popd



# Reset ownership
chown pi:pi -R /home/pi/klipper

0 comments on commit 23d6b35

Please sign in to comment.