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:
parent
8dc8146abf
commit
9d7c2a08c0
|
|
@ -61,13 +61,13 @@ print
|
||||||
print "You should only run this script on a SD Card that contains Raspberry Pi OS (Lite)"
|
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."
|
print "and does not contain any important data."
|
||||||
|
|
||||||
if [[ -f "/etc/os-release" ]]; then
|
if [[ -f "/proc/device-tree/model" ]]; then
|
||||||
OSID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
|
MODEL=$(tr -d '\0' < /proc/device-tree/model)
|
||||||
else
|
else
|
||||||
OSID="undefined"
|
MODEL="undefined"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $OSID != "raspbian" ]]; then
|
if [[ $MODEL != Raspberry* ]]; then
|
||||||
print
|
print
|
||||||
cancel "This script currently only works on Raspberry Pi OS, you will have to do a manual installation."
|
cancel "This script currently only works on Raspberry Pi OS, you will have to do a manual installation."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue