From 380c98c438afedd0810537a765c75194cedc81c5 Mon Sep 17 00:00:00 2001 From: f0o Date: Wed, 25 Nov 2015 13:23:52 +0000 Subject: [PATCH] Added SLES detection to distro script --- scripts/distro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/distro b/scripts/distro index ecfda5c4b..96cbbe75f 100755 --- a/scripts/distro +++ b/scripts/distro @@ -60,6 +60,10 @@ elif [ "${OS}" = "Linux" ] ; then elif [ -f /etc/pld-release ] ; then DIST=$(cat /etc/pld-release) REV="" + + elif [ -f /etc/SuSE-release ] ; then + DIST=$(echo SLES $(grep VERSION /etc/SuSE-release | cut -d = -f 2 | tr -d " ")) + REV=$(echo SP$(grep PATCHLEVEL /etc/SuSE-release | cut -d = -f 2 | tr -d " ")) fi if [ -f /etc/lsb-release -a "${IGNORE_LSB}" != 1 ] ; then