diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-10 14:14:22 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-10 14:14:22 +0200 |
commit | c5510367db582d1c0683f182dd0e151ea0ab3b5f (patch) | |
tree | e43d7d6a4eae8d586ac8b43ef436ae178465bcfe /config/i3blocks/scripts/bandwidth | |
parent | 3c905d717a331b9be6d7036624378d0617234a82 (diff) | |
download | myconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.tar.gz myconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.tar.bz2 myconfigs-c5510367db582d1c0683f182dd0e151ea0ab3b5f.zip |
Improvements for NixOS
Diffstat (limited to 'config/i3blocks/scripts/bandwidth')
-rwxr-xr-x | config/i3blocks/scripts/bandwidth | 2 |
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 |