Detect more host name on linux
This commit is contained in:
parent
49c964049d
commit
d165b1a734
|
@ -82,8 +82,10 @@ else ifeq ($(HOST_OS),Linux)
|
||||||
HOST_NAME := Tegra
|
HOST_NAME := Tegra
|
||||||
else ifneq ($(findstring jetsonbot,$(UNAME_A)),)
|
else ifneq ($(findstring jetsonbot,$(UNAME_A)),)
|
||||||
HOST_NAME := Tegra
|
HOST_NAME := Tegra
|
||||||
#else ifneq ($(findstring firefly,$(UNAME_A)),)
|
else ifneq ($(findstring firefly,$(UNAME_A)),)
|
||||||
# HOST_NAME := Firefly
|
HOST_NAME := Firefly
|
||||||
|
else ifneq ($(findstring ubuntu,$(UNAME_A)),)
|
||||||
|
HOST_NAME := Ubuntu
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,10 @@ elif [ "$HOST_OS" = "Linux" ]; then
|
||||||
_UNAME_A=$(uname -a)
|
_UNAME_A=$(uname -a)
|
||||||
if _host_contains_ "$_UNAME_A" "tegra\|jetsonbot"; then
|
if _host_contains_ "$_UNAME_A" "tegra\|jetsonbot"; then
|
||||||
HOST_NAME="Tegra"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user