Skip to content

Instantly share code, notes, and snippets.

@pr1ntf
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pr1ntf/3b079ce069104b3c270c to your computer and use it in GitHub Desktop.
Save pr1ntf/3b079ce069104b3c270c to your computer and use it in GitHub Desktop.
bootin
#!/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