This commit is contained in:
waveringana 2025-06-15 06:11:29 -04:00
parent e0c6926ba0
commit 23bf9ccaa3
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,9 @@
#!/run/current-system/sw/bin/bash
echo "qemu-hook: ${1} ${2}" >> /tmp/qemu-hook.log
set -x
readonly GUEST_NAME="$1"
readonly HOOK_NAME="$2"
readonly STATE_NAME="$3"
@ -54,4 +58,4 @@ if [[ "$HOOK_NAME" == "prepare" && "$STATE_NAME" == "begin" ]]; then
start_hook
elif [[ "$HOOK_NAME" == "release" && "$STATE_NAME" == "end" ]]; then
revert_hook
fi
fi