From 06491a5b4fb4121123f36fd1e81089285abd2833 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 19 Aug 2017 10:50:53 +0200 Subject: [PATCH] Linux Mint detection --- include/osdetection | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/osdetection b/include/osdetection index 0d19782e..44a0947d 100644 --- a/include/osdetection +++ b/include/osdetection @@ -219,6 +219,16 @@ # Ubuntu test (optional) $(grep "[Uu]buntu" /proc/version) fi + # Override for Linux Mint, as that is initially detected as Debian or Ubuntu + if [ -x /usr/bin/lsb_release ]; then + FIND=$(lsb_release --id | awk '{ print $2 }') + if [ "${FIND}" = "LinuxMint" ]; then + LINUX_VERSION="Linux Mint" + OS_VERSION=$(lsb_release --release | awk '{ print $2 }') + OS_FULLNAME="Linux Mint ${OS_VERSION}" + fi + fi + # E-smith if [ -e "/etc/e-smith-release" ]; then OS_FULLNAME=$(cat /etc/e-smith-release); fi