[PATCH] Suse version not being correctly detected on SLES9

Gildas Le Nadan gn1 at sanger.ac.uk
Thu Jan 4 17:34:27 CET 2007


The distribution is not returned correctly on SLES9, as the 
hobbitclient-linux.sh script is looking for SuSE when it's SUSE:

$ cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 2

I don't have any SuSE machines before hands, but adding a -i option to 
grep should be safe enough (at least it works for me now ;))

Cheers,
Gildas

--- hobbitclient-linux.sh.orig  2007-01-04 16:30:08.711197000 +0000
+++ hobbitclient-linux.sh       2007-01-04 16:30:47.073876464 +0000
@@ -27,7 +27,7 @@
         echo -en "Debian "
         cat /etc/debian_version
  elif [ -f /etc/SuSE-release ]; then
-       grep ^SuSE /etc/SuSE-release
+       grep -i ^SuSE /etc/SuSE-release
  elif [ -f /etc/slackware-version ]; then
         cat /etc/slackware-version
  elif [ -f /etc/mandrake-release ]; then



More information about the Xymon mailing list