1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2426 from jvonau/rpi_detect

use /etc/rpi-issue for raspbian test
This commit is contained in:
A Holt 2020-05-29 13:32:27 -04:00 committed by GitHub
commit 751e3a9c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,9 @@ fi
OS=`grep ^ID= /etc/*elease|cut -d= -f2`
OS=${OS//\"/}
if [ -f /etc/rpi-issue ]; then
OS="raspbian"
fi
VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2`
VERSION_ID=${VERSION_ID//\"/}
VERSION_ID=${VERSION_ID%%.*}