Merge pull request #2299 from nullr0ute/net-tools

Use ip route rather than old net-tools route in  chronometer.sh
This commit is contained in:
Mark Drobnak 2018-09-09 15:11:19 -04:00 committed by GitHub
commit 6f276ae4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -243,7 +243,7 @@ get_sys_stats() {
disk_total="${disk_raw[1]}"
disk_perc="${disk_raw[2]}"
net_gateway=$(route -n | awk '$4 == "UG" {print $2;exit}')
net_gateway=$(ip route | grep default | cut -d ' ' -f 3)
# Get DHCP stats, if feature is enabled
if [[ "$DHCP_ACTIVE" == "true" ]]; then