From 7fd091f5342f34c6ecc2b5423b6d4ed61abaceae Mon Sep 17 00:00:00 2001 From: sose Date: Sun, 13 Sep 2020 03:14:56 +0000 Subject: [PATCH] do not configure the network if one is already configured --- connection.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/connection.sh b/connection.sh index b4c0aae..5a3b01d 100755 --- a/connection.sh +++ b/connection.sh @@ -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 }