mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
remove unneccessary interface check
This commit is contained in:
parent
db1df36668
commit
2105ff1bfa
1 changed files with 2 additions and 7 deletions
|
@ -53,13 +53,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get network traffic
|
# get network traffic
|
||||||
if ifconfig | grep -q "eth0"; then
|
network_rx=$(ifconfig eth0 | grep 'RX packets' | awk '{ print $6$7 }' | sed 's/[()]//g')
|
||||||
network_interface="eth0"
|
network_tx=$(ifconfig eth0 | grep 'TX packets' | awk '{ print $6$7 }' | sed 's/[()]//g')
|
||||||
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')
|
|
||||||
|
|
||||||
# Bitcoin blockchain
|
# Bitcoin blockchain
|
||||||
btc_path=$(command -v ${network}-cli)
|
btc_path=$(command -v ${network}-cli)
|
||||||
|
|
Loading…
Add table
Reference in a new issue