Last active
August 29, 2015 14:23
-
-
Save pr1ntf/3b079ce069104b3c270c to your computer and use it in GitHub Desktop.
bootin
This file contains hidden or 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
#!/bin/sh | |
guestlist="$(zfs list | grep iohyve | grep -v ISO | grep -v .img | cut -d ' ' -f 1 | cut -d '/' -f 3 | sed 1d)" | |
#echo $guestlist | |
for i in $guestlist ; do | |
bootprop="$(zfs get -H -o value iohyve:boot neuralnet/iohyve/$i)" | |
if [ $bootprop = "1" ]; then | |
iohyve start $i -p & | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment