diff options
Diffstat (limited to 'integration/scripts/trovestack')
-rwxr-xr-x | integration/scripts/trovestack | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/scripts/trovestack b/integration/scripts/trovestack index adc1ad95..29a1fcb1 100755 --- a/integration/scripts/trovestack +++ b/integration/scripts/trovestack @@ -40,7 +40,7 @@ set -e # Get default host ip from interface function get_default_host_ip() { - host_iface=$(ip route | sed -n '/^default/{ s/.*dev \(\w\+\)\s\+.*/\1/; p; }' | head -1) + host_iface=$(ip route | grep default | awk '{print $5}' | head -1) echo `LC_ALL=C ip -f inet addr show ${host_iface} | awk '/inet/ {split($2,parts,"/"); print parts[1]}' | head -1` } |