default OS goes to Linux
This commit is contained in:
parent
f19f16d6d1
commit
e5f558c08d
@ -44,12 +44,19 @@ if [ $bmajor -lt 3 ] || [ $bmajor -eq 3 -a $bminor -lt 2 ]; then
|
||||
fi
|
||||
unset bash bmajor bminor
|
||||
|
||||
|
||||
###############
|
||||
# OS specific #
|
||||
###############
|
||||
|
||||
# OS detection, default to Linux
|
||||
OS="Linux"
|
||||
case $(uname) in
|
||||
"Linux" ) OS="Linux" ;;
|
||||
"Linux" ) OS="Linux" ;;
|
||||
"FreeBSD") OS="FreeBSD" ;;
|
||||
esac
|
||||
|
||||
|
||||
# Colors declarations
|
||||
if [[ "$OS" == "FreeBSD" ]] ; then
|
||||
|
||||
BLACK="\[$(tput AF 0)\]"
|
||||
@ -112,13 +119,6 @@ else
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
###############
|
||||
# OS specific #
|
||||
###############
|
||||
|
||||
# get cpu number
|
||||
__cpunum_Linux ()
|
||||
{
|
||||
@ -225,6 +225,7 @@ __host_color()
|
||||
echo -ne "${ret}${NO_COL}"
|
||||
}
|
||||
|
||||
|
||||
################
|
||||
# Related jobs #
|
||||
################
|
||||
|
Loading…
Reference in New Issue
Block a user