diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osdetection | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection index 106d51d7..e4b90703 100644 --- a/include/osdetection +++ b/include/osdetection @@ -162,6 +162,19 @@ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_NAME="Ubuntu Linux" ;; + "opensuse-tumbleweed") + LINUX_VERSION="openSUSE Tumbleweed" + OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + # It's rolling release but has a snapshot version (the date of the snapshot) + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="openSUSE" + ;; + "opensuse-leap") + LINUX_VERSION="openSUSE Leap" + 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="openSUSE" + ;; *) Debug "Unknown OS found in /etc/os-release. Do you know what it is? Create an issue at ${PROGRAM_SOURCE}" ;; |