mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 06:33:57 +08:00
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.
old-commit-hash: f5d253764c
4 lines
126 B
Bash
Executable File
4 lines
126 B
Bash
Executable File
#!/usr/bin/bash
|
|
nmcli connection modify --temporary lte ipv4.route-metric 1 ipv6.route-metric 1
|
|
nmcli con up --wait --ask lte
|