Move newClient () into functions section
This commit is contained in:
parent
468a1afa46
commit
e4ddb22032
1 changed files with 6 additions and 7 deletions
|
|
@ -81,13 +81,6 @@ function initialCheck () {
|
||||||
checkOS
|
checkOS
|
||||||
}
|
}
|
||||||
|
|
||||||
##########################################
|
|
||||||
############### MAIN ###############
|
|
||||||
##########################################
|
|
||||||
|
|
||||||
initialCheck
|
|
||||||
|
|
||||||
|
|
||||||
function newclient () {
|
function newclient () {
|
||||||
echo ""
|
echo ""
|
||||||
echo "Do you want to protect the configuration file with a password?"
|
echo "Do you want to protect the configuration file with a password?"
|
||||||
|
|
@ -152,6 +145,12 @@ function newclient () {
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
############### MAIN ###############
|
||||||
|
##########################################
|
||||||
|
|
||||||
|
initialCheck
|
||||||
|
|
||||||
# Get Internet network interface with default route
|
# Get Internet network interface with default route
|
||||||
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)
|
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue