[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hobbit client cosmetic bug



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