#!/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