2024-07-17 12:18:27 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function configureSW
|
2024-09-26 15:05:48 +00:00
|
|
|
begin
|
|
|
|
sudo virsh net-info default | grep "^Active:\s*yes\$" > /dev/null
|
|
|
|
end || sudo virsh net-start default
|
2024-07-17 12:18:27 +00:00
|
|
|
|
2024-09-26 15:05:48 +00:00
|
|
|
and sudo virsh net-autostart default
|
|
|
|
or true
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
|
2024-07-28 21:43:11 +00:00
|
|
|
function userConfig -a name
|
|
|
|
sudo usermod -aG libvirt "$name"
|
|
|
|
end
|
|
|
|
|
2024-07-17 12:18:27 +00:00
|
|
|
runInstaller $argv
|
|
|
|
end
|