If you're talking bash script, then yesI 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
Code:
nmcli con up br0 || nmcli con up bridge-br0
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