2018-06-25 08:22:27 +00:00
|
|
|
#!/bin/sh
|
2015-06-29 11:14:42 +01:00
|
|
|
#-------------------------------------------------------------------------+
|
2016-08-08 15:21:36 +01:00
|
|
|
# Copyright (C) 2016 Matt Churchyard (churchers@gmail.com)
|
2015-06-29 11:14:42 +01:00
|
|
|
# All rights reserved
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
# modification, are permitted providing that the following conditions
|
|
|
|
|
# are met:
|
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
|
#
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
|
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
|
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
|
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
# get libs
|
2022-04-09 16:46:56 -04:00
|
|
|
if [ -e "/usr/local/lib/vm-bhyve" ]; then
|
2015-11-14 14:04:19 +00:00
|
|
|
LIB="/usr/local/lib/vm-bhyve"
|
2015-06-29 11:14:42 +01:00
|
|
|
else
|
2018-12-24 17:11:37 +01:00
|
|
|
echo "unable to locate vm-bhyve libraries"
|
2015-11-14 14:04:19 +00:00
|
|
|
exit 1
|
2015-06-29 11:14:42 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# load libs
|
2015-10-18 11:27:32 +01:00
|
|
|
. "${LIB}/vm-cmd"
|
2015-10-14 11:11:59 +01:00
|
|
|
. "${LIB}/vm-config"
|
2015-06-29 11:14:42 +01:00
|
|
|
. "${LIB}/vm-core"
|
2016-04-18 19:02:37 +01:00
|
|
|
. "${LIB}/vm-datastore"
|
2015-08-08 12:21:01 +01:00
|
|
|
. "${LIB}/vm-guest"
|
2015-11-11 15:30:13 +00:00
|
|
|
. "${LIB}/vm-info"
|
2016-08-02 22:11:11 +01:00
|
|
|
. "${LIB}/vm-migration"
|
2016-04-07 15:50:06 +01:00
|
|
|
. "${LIB}/vm-rctl"
|
2015-10-18 11:27:32 +01:00
|
|
|
. "${LIB}/vm-run"
|
|
|
|
|
. "${LIB}/vm-switch"
|
2016-06-09 10:47:47 +01:00
|
|
|
. "${LIB}/vm-util"
|
2015-08-06 19:31:08 +01:00
|
|
|
. "${LIB}/vm-zfs"
|
2015-06-29 11:14:42 +01:00
|
|
|
|
2018-06-29 09:36:38 +00:00
|
|
|
. "${LIB}/vm-base"
|