8 lines
203 B
Bash
Executable file
8 lines
203 B
Bash
Executable file
#!/bin/bash
|
|
sudo usermod -aG libvirt "$USER";
|
|
sudo virsh net-autostart default;
|
|
|
|
if ! sudo virsh net-info default | grep "^Active:\s*yes$" > /dev/null;
|
|
then
|
|
sudo virsh net-start default || true;
|
|
fi;
|