Skip to content

Commit

Permalink
fix: fix 'is_board_type' function (#243)
Browse files Browse the repository at this point in the history
Since we applied PR #241 and #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 authored Oct 20, 2023
1 parent be13745 commit c24e95b
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 c24e95b

Please sign in to comment.