From a0f0dff88ec7e0dde30aa278bf42f5e5556258ba Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Sun, 6 Nov 2016 08:18:57 -0600 Subject: [PATCH] replace hardcoded interface with var setupVars.conf is already sourced, so we just need to replace the hardcoded value with the variable name. --- advanced/Scripts/chronometer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 2e6cabda..46051a20 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -80,7 +80,7 @@ normalChrono() { echo "| _/ |___| ' \/ _ \ / -_)" echo "|_| |_| |_||_\___/_\___|" echo "" - echo " $(ifconfig eth0 | awk '/inet addr/ {print $2}' | cut -d':' -f2)" + echo " $(ifconfig ${PIHOLE_INTERFACE} | awk '/inet addr/ {print $2}' | cut -d':' -f2)" echo "" uptime | cut -d' ' -f11- #uptime -p #Doesn't work on all versions of uptime