Adding intermediate legacy kd-win script for archive
This commit is contained in:
parent
78f12ccf47
commit
644dd35486
27
bin/kd-win
27
bin/kd-win
|
@ -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}" &
|
||||||
|
|
Loading…
Reference in New Issue