From 2105ff1bfa0432213db511019aad0cfa4d7b1e92 Mon Sep 17 00:00:00 2001 From: Patrick Pachur Date: Tue, 6 Nov 2018 14:54:52 +0100 Subject: [PATCH] remove unneccessary interface check --- home.admin/00infoBlitz.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index f01e460..7e82b5b 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -53,13 +53,8 @@ else fi # get network traffic -if ifconfig | grep -q "eth0"; then - network_interface="eth0" -else - network_interface="wlan0" -fi -network_rx=$(ifconfig ${network_interface} | grep 'RX packets' | awk '{ print $6$7 }' | sed 's/[()]//g') -network_tx=$(ifconfig ${network_interface} | grep 'TX packets' | awk '{ print $6$7 }' | sed 's/[()]//g') +network_rx=$(ifconfig eth0 | grep 'RX packets' | awk '{ print $6$7 }' | sed 's/[()]//g') +network_tx=$(ifconfig eth0 | grep 'TX packets' | awk '{ print $6$7 }' | sed 's/[()]//g') # Bitcoin blockchain btc_path=$(command -v ${network}-cli)