Xymon Mailing List Archive search

Hobbit client cosmetic bug

list Peter Welter
Wed, 18 Apr 2007 10:57:54 +0200
Message-Id: <user-b09fa91c4d00@xymon.invalid>

Hello Henrik,

In Hobbit 4.2 there is a comestic bug in ~hobbit/client/bin/hobbitclient-
linux.sh.

This script parses on what Linux-release Hobbit is running.

echo "[osversion]"
...[snip]...
elif [ -f /etc/SuSE-release ]; then
        grep ^SuSE /etc/SuSE-release
...[snip]...

This produces the right output on Suse 9.1:

SuSE Linux 9.1 (i586)
VERSION = 9.1

But on SLES9, the file contains SUSE in uppercase.

# cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
PATCHLEVEL = 3

Of course this can easily be solved with a grep -i.

Regards,
Peter