Browse Source

Merge pull request #521 from openoms/v1.2

introduce aarch64 + ubuntu and armbian
master
Christian Rotzoll 6 years ago
committed by GitHub
parent
commit
4838560c72
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      home.admin/00infoBlitz.sh

11
home.admin/00infoBlitz.sh

@ -75,8 +75,15 @@ else
fi
# get network traffic
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')
# ifconfig does not show eth0 on Armbian - get first traffic info
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian')
if [ ${isArmbian} -gt 0 ]; then
network_rx=$(ifconfig | grep -m1 'RX packets' | awk '{ print $6$7 }' | sed 's/[()]//g')
network_tx=$(ifconfig | grep -m1 'TX packets' | awk '{ print $6$7 }' | sed 's/[()]//g')
else
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')
fi
# Bitcoin blockchain
btc_path=$(command -v ${network}-cli)

Loading…
Cancel
Save