Adding intermediate legacy kd-win script for archive

This commit is contained in:
David Thurstenson 2020-08-11 12:06:00 -05:00
parent 78f12ccf47
commit 644dd35486
1 changed files with 15 additions and 12 deletions

View File

@ -3,16 +3,19 @@
#kd-win: virt-viewer launcher
domain="win10"
uri="qemu+ssh://kd-laptop/system"
cmd="virt-viewer --connect=$uri"
opts=("--wait" "--reconnect" "--domain-name")
if [ "$1" = "-m" ]; then
virt-manager \
--connect=qemu:///system \
--show-domain-editor "$domain"
else
virt-viewer \
--connect=qemu:///system \
--wait \
--reconnect \
--domain-name \
"$domain"
fi
while :; do
case $1 in
-m)
cmd="virt-manager --connect=$uri"
opts=("--show-domain-editor")
;;
*) break;;
esac
shift
done
$cmd "${opts[@]}" "${domain}" &