aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/bandwidth
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3blocks/scripts/bandwidth')
-rwxr-xr-xconfig/i3blocks/scripts/bandwidth2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/i3blocks/scripts/bandwidth b/config/i3blocks/scripts/bandwidth
index 9b92274..d45f127 100755
--- a/config/i3blocks/scripts/bandwidth
+++ b/config/i3blocks/scripts/bandwidth
@@ -38,7 +38,7 @@ if [[ -z $INTERFACE ]] && [[ -n $BLOCK_INSTANCE ]]; then
INTERFACE=$BLOCK_INSTANCE
elif [[ -z $INTERFACE ]]; then
for version in 4 6; do
- INTERFACE=$(ip -$version r | sed -n 's/^default.*dev \([^ ]*\).*/\1/p')
+ INTERFACE=$(ip -$version r | sed -n 's/^default.*dev \([^ ]*\).*/\1/p' | head -1)
[ -z "$INTERFACE" ] || break
done
fi