From 12c2cd4e8616d3350ea2a30d1b8a0d175373dc54 Mon Sep 17 00:00:00 2001 From: Ashwin Sekar Date: Wed, 5 May 2021 19:02:38 -0700 Subject: [PATCH] Fix net shaper script to properly query interfaces (#17065) Previously was using ifconfig which is not available on gce --- scripts/net-shaper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/net-shaper.sh b/scripts/net-shaper.sh index 28b277a0a1..7f1e3cecd7 100755 --- a/scripts/net-shaper.sh +++ b/scripts/net-shaper.sh @@ -15,7 +15,7 @@ fi set -x -iface="$(ifconfig | grep mtu | grep -iv loopback | grep -i running | awk 'BEGIN { FS = ":" } ; {print $1}')" +iface="$(ip link show | grep mtu | grep -iv loopback | grep "state UP" | awk 'BEGIN { FS = ": " } ; {print $2}')" if [[ "$1" = cleanup ]]; then $sudo ~solana/.cargo/bin/solana-net-shaper cleanup -f "$2" -s "$3" -p "$4" -i "$iface"