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:
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=${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%%.*}
|
||||
|
|
Loading…
Reference in a new issue