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
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ normalChrono() {
echo "| _/ |___| ' \/ _ \ / -_)" echo "| _/ |___| ' \/ _ \ / -_)"
echo "|_| |_| |_||_\___/_\___|" 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 "" echo ""
uptime | cut -d' ' -f11- uptime | cut -d' ' -f11-
#uptime -p #Doesn't work on all versions of uptime #uptime -p #Doesn't work on all versions of uptime