Created
August 19, 2014 01:23
-
-
Save wenjianhn/0358a84d44507e9eaa19 to your computer and use it in GitHub Desktop.
suspend host if guest shutdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do virsh list | grep win7; if [[ $? -ne 0 ]]; then pm-suspend; fi; sleep 10; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment