qemush : damn, la fonction cat avait disparu

This commit is contained in:
Ahurac 2024-03-25 16:08:06 +01:00
parent c35664f775
commit 97fb16f624

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
# version=0.10.0
# version=0.10.1
# Re-exec the script as qemu via sudo (only if needed)
[ "$(whoami)" != qemu ] && exec sudo -E -H -u qemu -- "$0" "$@"
@ -29,6 +29,7 @@ ${name}: usage:
${name} ls - list available VMs
${name} add <path to script> [<VM name>] - add a launching script
${name} edit <VM name> - edit VM launching script
${name} cat <VM name> - print the content of a launching script
${name} start <VM name> - start a VM
${name} attach <VM name> - attach to the VM monitor socket
${name} rm <VM name> - delete launch script
@ -206,7 +207,7 @@ case "$1" in
"")
public_running
;;
running|ls|add|edit|start|attach|rm|diskls|diskadd|diskrm|shell|do|spice|help)
running|ls|add|edit|cat|start|attach|rm|diskls|diskadd|diskrm|shell|do|spice|help)
function=$1
shift