explorer/os: add support for *bsd

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-07 13:56:18 +01:00
parent 14e7427508
commit e896fc6d4e

View file

@ -53,10 +53,24 @@ if [ -f /etc/SuSE-release ]; then
exit 0
fi
case "$(uname -s)" in
uname_s="$(uname -s)"
# Assume there is no tr on the client -> do lower case ourselves
case "$uname_s" in
Darwin)
echo macosx
exit 0
NetBSD)
echo netbsd
exit 0
;;
FreeBSD)
echo freebsd
exit 0
;;
OpenBSD)
echo openbsd
exit 0
;;
esac