From: Simon Ruderich Date: Mon, 29 Mar 2010 00:52:29 +0000 (+0200) Subject: lib.sh: Add support for FreeBSD to os(). X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=9571f95bc667454fab054ba67477d90ff323d87c lib.sh: Add support for FreeBSD to os(). --- 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