Start the FreeBSD install script (not ready)

This commit is contained in:
Mark J Crane
2017-03-25 11:41:47 -06:00
parent 59c4f4473e
commit 83f064cae0
30 changed files with 1227 additions and 0 deletions

25
freebsd/resources/colors.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
verbose () {
echo "${green}$1${normal}"
}
error () {
echo "${red}$1${normal}"
}
warning () {
echo "${yellow}$1${normal}"
}
# check for color support
if test -t 1; then
# see if it supports colors...
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
normal="$(tput sgr0)"
red="$(tput setaf 1)"
green="$(tput setaf 2)"
yellow="$(tput setaf 3)"
fi
fi