# Get the default gateway (the way to reach the Internet)
IPv4gw=$(awk '{print $3}'<<<"${route}")
}
# Get available interfaces that are UP
@ -483,7 +480,6 @@ In the next section, you can choose to use your current network settings (DHCP)
# We need to make sure there is enough space before installing, so there is a function to check this
verifyFreeDiskSpace(){
# 50MB is the minimum space needed (45MB install (includes web admin bootstrap/jquery libraries etc) + 5MB one day of logs.)
# - Fourdee: Local ensures the variable is only created, and accessible within this function/void. Generally considered a "good" coding practice for non-global variables.
localstr="Disk space check"
@ -2182,8 +2178,7 @@ get_binary_name() {
fi
}
FTLcheckUpdate()
{
FTLcheckUpdate(){
get_binary_name
#In the next section we check to see if FTL is already installed (in case of pihole -r).
@ -2434,7 +2429,7 @@ main() {
# generate a random password
pw=$(tr -dc _A-Z-a-z-0-9 < /dev/urandom | head -c 8)