Skip to content

Commit

Permalink
fixes #88, to allow installation on Raspbian OS 64bit
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Berning <151194+laberning@users.noreply.github.com>
  • Loading branch information
laberning committed Oct 23, 2022
1 parent 8dc8146 commit 9d7c2a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ print
print "You should only run this script on a SD Card that contains Raspberry Pi OS (Lite)"
print "and does not contain any important data."

if [[ -f "/etc/os-release" ]]; then
OSID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
if [[ -f "/proc/device-tree/model" ]]; then
MODEL=$(tr -d '\0' < /proc/device-tree/model)
else
OSID="undefined"
MODEL="undefined"
fi

if [[ $OSID != "raspbian" ]]; then
if [[ $MODEL != Raspberry* ]]; then
print
cancel "This script currently only works on Raspberry Pi OS, you will have to do a manual installation."
fi
Expand Down

0 comments on commit 9d7c2a0

Please sign in to comment.