Detect more host name on linux

This commit is contained in:
John Zhao
2018-03-09 14:21:41 +08:00
parent 49c964049d
commit d165b1a734
2 changed files with 8 additions and 2 deletions

View File

@@ -71,6 +71,10 @@ elif [ "$HOST_OS" = "Linux" ]; then
_UNAME_A=$(uname -a)
if _host_contains_ "$_UNAME_A" "tegra\|jetsonbot"; then
HOST_NAME="Tegra"
elif _host_contains_ "$_UNAME_A" "firefly"; then
HOST_NAME="Firefly"
elif _host_contains_ "$_UNAME_A" "ubuntu"; then
HOST_NAME="Ubuntu"
fi
fi