1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

use /etc/rpi-issue for raspbian test

This commit is contained in:
Jerry Vonau 2020-05-29 11:59:28 -05:00
parent 28319c33c9
commit 22979c14c4

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%%.*}