From c619e7cce2a60f2d435a783ba607ea7b421170b7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Mar 2010 22:00:34 +0100 Subject: [PATCH] lib.sh: Add support for Solaris to os(). --- lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib.sh b/lib.sh index 93c45cf..e1be32d 100644 --- a/lib.sh +++ b/lib.sh @@ -18,6 +18,7 @@ installed() { # - Debian (debian) # - Gentoo (gentoo) # - Mac OS X (darwin) +# - Solaris/OpenSolaris (sun) # If an unsupported OS is used an error is printed. os() { if [ -f /etc/debian_version ]; then @@ -26,6 +27,8 @@ os() { echo gentoo elif [ x`uname` = xDarwin ]; then echo darwin + elif [ x`uname` = xSunOS ]; then + echo sun else echo unsupported OS! >&2 return 1 -- 2.43.2