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.
pull/27058/head
Michael G. Inso 2 years ago committed by GitHub
parent 100fe10c7c
commit f5d253764c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      scripts/cell.sh

@ -1,5 +1,3 @@
#!/usr/bin/bash #!/usr/bin/bash
nmcli connection modify --temporary lte ipv4.route-metric 1 ipv6.route-metric 1
nmcli connection modify --temporary lte ipv4.route-metric 1 nmcli con up --wait --ask lte
nmcli connection modify --temporary lte ipv6.route-metric 1
nmcli con up lte

Loading…
Cancel
Save