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
|
||||
|
||||
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}" &
|
||||
|
|
Loading…
Reference in New Issue