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 #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 <[email protected]>
  • Loading branch information
KwadFan committed Oct 17, 2023
1 parent be13745 commit d7856c6
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 d7856c6

Please sign in to comment.