Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Add hvint0 (#39)
Browse files Browse the repository at this point in the history
Change-Id: Ie801f75f8a6055219e62e1d7c0310174ab10bd67
Signed-off-by: Florent BENOIT <[email protected]>
  • Loading branch information
benoitf authored Nov 10, 2016
1 parent 75af27a commit 5167bb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions che-ip/getip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ NETWORK_IF=

# handle docker for windows/mac
if uname -r | grep -q 'moby'; then
if [ -d "/sys/class/net/eth0" ]; then
if [ -d "/sys/class/net/hvint0" ]; then
NETWORK_IF=hvint0
elif [ -d "/sys/class/net/eth0" ]; then
NETWORK_IF=eth0
fi
fi
fi

if test -z ${NETWORK_IF}; then
Expand Down

0 comments on commit 5167bb1

Please sign in to comment.