Skip to content

Commit

Permalink
fix: fix is_board_type function
Browse files Browse the repository at this point in the history
Since we applied PR mainsail-crew#241 and PR mainsail-crew#242
This function always returns no value.
Which leads to errors in enabling SPI Interface by default.

This should fix this behaviour

Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed Oct 17, 2023
1 parent 09caf30 commit 4a96e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/armbian/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install_cleanup_trap
is_board_type() {
local board releasefile
board=""
releasefile="/etc/armbian-release-info.txt"
releasefile="/etc/armbian-release"
if [[ -f "${releasefile}" ]]; then
board="$(grep "BOARD=" "${releasefile}" | cut -d'=' -f2)"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/modules/orangepi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install_cleanup_trap
is_board_type() {
local board releasefile
board=""
releasefile="/etc/orangepi-release-info.txt"
releasefile="/etc/orangepi-release"
if [[ -f "${releasefile}" ]]; then
board="$(grep "BOARD=" "${releasefile}" | cut -d'=' -f2)"
fi
Expand Down

0 comments on commit 4a96e8e

Please sign in to comment.