Skip to content

Commit

Permalink
fix: fix 'is_board_type' function (mainsail-crew#243)
Browse files Browse the repository at this point in the history
Since we applied PR mainsail-crew#241 and mainsail-crew#242,
this function always doesnt give the right value,
which leads to unwanted behaviour in enabling SPI during build.

As we no longer rename the release file,
we have to use its original location in '/etc/armbian-release'
( Or '/etc/orangepi-release' if Opi Image is used )

Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed Oct 28, 2023
1 parent 446ccaf commit 21d8f1f
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 21d8f1f

Please sign in to comment.