mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
use /etc/rpi-issue for raspbian test
This commit is contained in:
parent
28319c33c9
commit
22979c14c4
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ fi
|
||||||
|
|
||||||
OS=`grep ^ID= /etc/*elease|cut -d= -f2`
|
OS=`grep ^ID= /etc/*elease|cut -d= -f2`
|
||||||
OS=${OS//\"/}
|
OS=${OS//\"/}
|
||||||
|
if [ -f /etc/rpi-issue ]; then
|
||||||
|
OS="raspbian"
|
||||||
|
fi
|
||||||
VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2`
|
VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2`
|
||||||
VERSION_ID=${VERSION_ID//\"/}
|
VERSION_ID=${VERSION_ID//\"/}
|
||||||
VERSION_ID=${VERSION_ID%%.*}
|
VERSION_ID=${VERSION_ID%%.*}
|
||||||
|
|
Loading…
Reference in a new issue