[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Suse version not being correctly detected on SLES9
- To: hobbit (at) hswn.dk
- Subject: [PATCH] Suse version not being correctly detected on SLES9
- From: Gildas Le Nadan <gn1 (at) sanger.ac.uk>
- Date: Thu, 04 Jan 2007 16:34:27 +0000
- User-agent: Debian Thunderbird 1.0.2 (X11/20061113)
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