From 9571f95bc667454fab054ba67477d90ff323d87c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 29 Mar 2010 02:52:29 +0200 Subject: [PATCH] lib.sh: Add support for FreeBSD to os(). --- lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib.sh b/lib.sh index 045af4c..206f995 100644 --- a/lib.sh +++ b/lib.sh @@ -19,6 +19,7 @@ installed() { # - Gentoo (gentoo) # - Mac OS X (darwin) # - Solaris/OpenSolaris (sun) +# - FreeBSD (freebsd) # If an unsupported OS is used an error is printed. os() { if [ -f /etc/debian_version ]; then @@ -29,6 +30,8 @@ os() { echo darwin elif [ x`uname` = xSunOS ]; then echo sun + elif [ x`uname` = xFreeBSD ]; then + echo freebsd else echo unsupported OS! >&2 return 1 -- 2.45.2