Skip to content

Commit

Permalink
Update build_chroot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 27, 2024
1 parent 0051847 commit 4da7190
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ echo ${FLAVOR}
echo ${CUSTOM}
echo ${ARCH}

if [[ $(tr -d '\0' </proc/device-tree/model) == *"Raspberry Pi"* ]]; then
echo "Running on a Raspberry Pi"
if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
echo "building for the raspberry pi"
else
echo "Running on something else"

sudo apt update
sudo apt install -y build-essential flex bc bison dkms
Expand Down

0 comments on commit 4da7190

Please sign in to comment.