do not configure the network if one is already configured

This commit is contained in:
sose 2020-09-13 03:14:56 +00:00
parent c2b281a035
commit 7fd091f534
1 changed files with 8 additions and 3 deletions

View File

@ -18,7 +18,12 @@ connection_test() {
}
configure_network() {
echo "Press ENTER to configure network"
read dummy_var
nmtui
if [ "$(nmcli networking connectivity)" != "full" ]
then
echo "Press ENTER to configure network"
read dummy_var
nmtui
else
echo "Network already configured, skipping..."
fi
}