diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-09-03 11:06:26 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-09-03 11:06:26 +0300 |
commit | 9041517e2a53ea137a2a2c0f570bc5dc0501c8e9 (patch) | |
tree | e18625139684acb43a6f05dace181a6272d0cff1 /include/osdetection | |
parent | 0d58ee77a05d15675bc011244c600293a6ec3cbc (diff) |
Added Debian and standardized others
Diffstat (limited to 'include/osdetection')
-rw-r--r-- | include/osdetection | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection index e1f55350..3e4b8610 100644 --- a/include/osdetection +++ b/include/osdetection @@ -173,9 +173,17 @@ OS_NAME="CoreOS Linux" OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') ;; + "debian") + LINUX_VERSION="Debian" + 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="Debian" + ;; "manjaro") LINUX_VERSION="Manjaro" OS_FULLNAME="Manjaro Linux" + OS_NAME="Manjaro" OS_VERSION="Rolling release" ;; "opensuse-tumbleweed") @@ -195,7 +203,8 @@ LINUX_VERSION="Ubuntu" 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_NAME="Ubuntu Linux" + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="Ubuntu" ;; "rhel") LINUX_VERSION="RHEL" |