Skip to content

Commit

Permalink
Add basic check for bhyve support. Not guaranteed, but a bit better t…
Browse files Browse the repository at this point in the history
…hen nothing.
  • Loading branch information
Brandon Schneider committed Apr 29, 2016
1 parent 62d05cd commit 9f9eb99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iohyve
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Set proper path thanks to iocage
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin

if ! $(cat /var/run/dmesg.boot | egrep -q 'VT-x|EPT') ; then
echo "Your CPU does not seem to support bhyve."
exit 1
fi

# Check whether a given command requires root
__root_req_cmd () {
case "$1" in
Expand Down

0 comments on commit 9f9eb99

Please sign in to comment.