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