Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5055

Networking and servers • Re: nmcli, Network Manager CLI, has naming problem.

$
0
0
I do not know if there is an easy way for a script to run the following command then only run the second command if the first one fails.
nmcli con up br0
nmcli con up bridge-br0
If you're talking bash script, then yes

Code:

nmcli con up br0 || nmcli con up bridge-br0
Second command runs if first one returns a non-zero status.

But I'm sure nmcli allows you to specify the connection name when you create the bridge.

Statistics: Posted by rpdom — Sun Jun 16, 2024 8:33 am



Viewing all articles
Browse latest Browse all 5055

Trending Articles