fixes #88, to allow installation on Raspbian OS 64bit

Signed-off-by: Lars Berning <151194+laberning@users.noreply.github.com>
This commit is contained in:
Lars Berning 2022-10-23 12:12:18 +02:00
parent 8dc8146abf
commit 9d7c2a08c0
1 changed files with 4 additions and 4 deletions

View File

@ -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