Skip to content

Commit

Permalink
feat: add python3-serial CanBoot dependency (#129)
Browse files Browse the repository at this point in the history
Added CanBoot Dependency to Base Image.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan authored Jul 21, 2022
1 parent 81c335e commit 1f59f0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Here a list of included and preinstalled Software:
- Preinstalled Dependencies for Klipper's Input Shaper. \
You only need to build the [klipper_mcu](https://www.klipper3d.org/RPi_microcontroller.html) and installing the service. \
See [Klipper documentation](https://www.klipper3d.org/Measuring_Resonances.html) for more information.
- Preinstalled python3-serial package, needed for [CanBoot](https://github.com/Arksine/CanBoot)

## Screenshots

Expand Down
6 changes: 4 additions & 2 deletions src/modules/mainsailos/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# This file is intentionally left blank
# Preparation for later use cases
#!/bin/bash
# shellcheck disable=all

[ -n "$MAINSAILOS_DEPS" ] || MAINSAILOS_DEPS="python3-serial"
5 changes: 5 additions & 0 deletions src/modules/mainsailos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ function get_parent {
cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f2
}
echo "${DIST_NAME} release ${DIST_VERSION} ($(get_parent))" > /etc/${DIST_NAME,,}-release

### Install CANBoot Dependency
apt update
# shellcheck disable=SC2086
check_install_pkgs ${MAINSAILOS_DEPS}

0 comments on commit 1f59f0f

Please sign in to comment.