Only get the first gateway for chronometer

Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com>
pull/2408/head
Mark Drobnak 6 years ago committed by GitHub
parent 6f276ae4bb
commit dac27f1f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save