From f5d253764cc3219fae26361af07bf5de9bf94b0a Mon Sep 17 00:00:00 2001 From: "Michael G. Inso" <68110223+MiChaelinzo@users.noreply.github.com> Date: Mon, 23 Jan 2023 20:49:48 +0300 Subject: [PATCH] Update cell.sh (#27055) You can combine the two nmcli commands into a single command by specifying both ipv4 and ipv6 options at the same time. You can use the nmcli command with the --wait option to wait for the connection to be fully established before exiting. You can use nmcli command with the --ask option to prompt the user to confirm the action before proceeding. --- scripts/cell.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/cell.sh b/scripts/cell.sh index cae701eccc..3623fe5b16 100755 --- a/scripts/cell.sh +++ b/scripts/cell.sh @@ -1,5 +1,3 @@ #!/usr/bin/bash - -nmcli connection modify --temporary lte ipv4.route-metric 1 -nmcli connection modify --temporary lte ipv6.route-metric 1 -nmcli con up lte +nmcli connection modify --temporary lte ipv4.route-metric 1 ipv6.route-metric 1 +nmcli con up --wait --ask lte