Move newClient and installLocalDNS to functions

This commit is contained in:
angristan 2018-09-17 14:59:48 +02:00
parent 243de3a4c4
commit 3284a5f2f5

View file

@ -78,10 +78,6 @@ function initialCheck () {
checkOS
}
# Main
initialCheck
function newclient () {
echo ""
echo "Do you want to protect the configuration file with a password?"
@ -221,6 +217,10 @@ private-address: ::ffff:0:0/96' > /etc/unbound/openvpn.conf
fi
}
# Main
initialCheck
# Get Internet network interface with default route
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)