From e896fc6d4e7149e5d16e5a12664e6bfa3574e56f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 7 Mar 2011 13:56:18 +0100 Subject: [PATCH] explorer/os: add support for *bsd Signed-off-by: Nico Schottelius --- conf/explorer/os | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/conf/explorer/os b/conf/explorer/os index 45b72a68..fc8531e8 100755 --- a/conf/explorer/os +++ b/conf/explorer/os @@ -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