mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
f9b2c51d41
32 changed files with 76 additions and 107 deletions
|
@ -56,6 +56,12 @@ else
|
|||
XO_VERSION="none"
|
||||
fi
|
||||
|
||||
if [ -f /proc/device-tree/model ]; then
|
||||
RPI_VERSION=`cat /proc/device-tree/model`
|
||||
else
|
||||
RPI_VERSION="none"
|
||||
fi
|
||||
|
||||
ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ")
|
||||
|
||||
if [ ! x$DHCPCD_PATH = x ]; then
|
||||
|
@ -77,6 +83,7 @@ cat <<EOF
|
|||
"iiab_branch" : "$BRANCH",
|
||||
"iiab_commit" : "$COMMIT",
|
||||
"xo_model" : "$XO_VERSION",
|
||||
"rpi_model" : "$RPI_VERSION",
|
||||
"ansible_version" : "$ANSIBLE_VERSION",
|
||||
"os" : "$OS",
|
||||
"os_ver" : "$OS_VER"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue