X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=lib.sh;h=206f9954a3841041da04e8b4417dccf497b889dc;hp=045af4c44afb05f8b3f3583f357d859a0a2424c3;hb=9571f95bc667454fab054ba67477d90ff323d87c;hpb=ce1f5a9cc34b3ca64f493cbdce22abc657eea362 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