Start virtual network only if available
This commit is contained in:
parent
1b26faf5d3
commit
f2e10df144
1 changed files with 5 additions and 4 deletions
|
@ -4,11 +4,12 @@ begin
|
||||||
source "$dir/../../Scripts/software.fish"
|
source "$dir/../../Scripts/software.fish"
|
||||||
|
|
||||||
function configureSW
|
function configureSW
|
||||||
sudo virsh net-autostart default
|
begin
|
||||||
|
sudo virsh net-info default | grep "^Active:\s*yes\$" > /dev/null
|
||||||
|
end || sudo virsh net-start default
|
||||||
|
|
||||||
if not sudo virsh net-info default | grep "^Active:\s*yes\$" > /dev/null
|
and sudo virsh net-autostart default
|
||||||
sudo virsh net-start default || true
|
or true
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function userConfig -a name
|
function userConfig -a name
|
||||||
|
|
Loading…
Reference in a new issue