Skip to content

Commit 9d7c2a0

Browse files
committed
fixes #88, to allow installation on Raspbian OS 64bit
Signed-off-by: Lars Berning <[email protected]>
1 parent 8dc8146 commit 9d7c2a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ print
6161
print "You should only run this script on a SD Card that contains Raspberry Pi OS (Lite)"
6262
print "and does not contain any important data."
6363

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

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

0 commit comments

Comments
 (0)