qemush : nouveau dossier pour les sockets, sockets/monitors

This commit is contained in:
Ahurac 2024-03-08 23:45:51 +01:00
parent e00d57ce54
commit 7e1fbdae54
3 changed files with 4 additions and 5 deletions

View file

@ -40,7 +40,7 @@ SRC_C_SOURCES_NAMES := $(notdir $(basename $(wildcard $(SRCD)/*$(SRC_FMT))))
C_BINARIES := $(addprefix $(QEMU_BIN)/,$(SRC_C_SOURCES_NAMES)) C_BINARIES := $(addprefix $(QEMU_BIN)/,$(SRC_C_SOURCES_NAMES))
# Directories in ~qemu necessary for qemush to work # Directories in ~qemu necessary for qemush to work
QEMUSH_DIRS_NAMES := bin launchers disks sockets QEMUSH_DIRS_NAMES := bin launchers disks sockets/monitors sockets/spice
QEMUSH_DIRS := $(addprefix $(QEMU_HOME)/,$(QEMUSH_DIRS_NAMES)) QEMUSH_DIRS := $(addprefix $(QEMU_HOME)/,$(QEMUSH_DIRS_NAMES))
install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS) install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS)

View file

@ -86,7 +86,7 @@ public_attach() {
public_running() { public_running() {
cd || return cd || return
echo "Running machines:" echo "Running machines:"
set -- $ls -t sockets "$@" set -- $ls -t sockets/monitors "$@"
exec "$@" exec "$@"
} }

View file

@ -18,11 +18,10 @@ case "$1" in
extension=qcow2 extension=qcow2
;; ;;
socket) socket)
basedir=sockets basedir=sockets/monitors
;; ;;
spice) spice)
basedir=spice basedir=sockets/spice
extension=sock
;; ;;
*) *)
false false