2021-11-19 13:00:27 -08:00

17 lines
347 B
Bash
Executable File

#!/bin/bash
OBJECT="$1"
OPERATION="$2"
if [[ $OBJECT == "win10" ]]; then
case "$OPERATION" in
"prepare")
/bin/start.sh 2>&1 | tee -a /var/log/libvirt/custom_hooks.log
;;
"release")
/bin/stop.sh 2>&1 | tee -a /var/log/libvirt/custom_hooks.log
;;
esac
fi