1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

replace hardcoded interface with var

setupVars.conf is already sourced, so we just need to replace the
hardcoded value with the variable name.
This commit is contained in:
Jacob Salmela 2016-11-06 08:18:57 -06:00
parent 6cb5bb7200
commit a0f0dff88e

View File

@ -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