We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc8146 commit 9d7c2a0Copy full SHA for 9d7c2a0
install/install.sh
@@ -61,13 +61,13 @@ print
61
print "You should only run this script on a SD Card that contains Raspberry Pi OS (Lite)"
62
print "and does not contain any important data."
63
64
-if [[ -f "/etc/os-release" ]]; then
65
- OSID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
+if [[ -f "/proc/device-tree/model" ]]; then
+ MODEL=$(tr -d '\0' < /proc/device-tree/model)
66
else
67
- OSID="undefined"
+ MODEL="undefined"
68
fi
69
70
-if [[ $OSID != "raspbian" ]]; then
+if [[ $MODEL != Raspberry* ]]; then
71
print
72
cancel "This script currently only works on Raspberry Pi OS, you will have to do a manual installation."
73
0 commit comments