From 66a754fa1849b1f1b9d1bb1c341e6cdb09451a86 Mon Sep 17 00:00:00 2001 From: Kristian Schuster Date: Sun, 20 Oct 2019 20:21:54 +0200 Subject: [PATCH] OS-Detection: add raspian detection --- include/osdetection | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osdetection b/include/osdetection index db7b9e92..cf9d1eac 100644 --- a/include/osdetection +++ b/include/osdetection @@ -206,6 +206,13 @@ OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_NAME="Ubuntu" ;; + "raspbian") + LINUX_VERSION="Raspbian" + OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="Raspbian" + ;; "rhel") LINUX_VERSION="RHEL" OS_NAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')