Don't bother checking guest setting anymore

This commit is contained in:
Matt Churchyard
2016-04-11 11:27:16 +01:00
parent 408d9c17d6
commit a2b38da313
2 changed files with 4 additions and 4 deletions

View File

@@ -356,7 +356,7 @@ __vm_start(){
local _name="$1"
local _iso="$2"
local _conf _host
local _memory _guest _disk
local _cpu _memory _disk
_conf="${vm_dir}/${_name}/${_name}.conf"
@@ -368,11 +368,11 @@ __vm_start(){
# check basic settings before going into background mode
__config_load "${_conf}"
__config_get "_cpu" "cpu"
__config_get "_memory" "memory"
__config_get "_guest" "guest"
__config_get "_disk" "disk0_name"
if [ -z "${_memory}" -o -z "${_guest}" -o -z "${_disk}" ]; then
if [ -z "${_cpu}" -o -z "${_memory}" -o -z "${_disk}" ]; then
__warn "incomplete virtual machine configuration"
return 1
fi

2
vm
View File

@@ -24,7 +24,7 @@
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
VERSION=0.12.5
VERSION=0.12.6
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
BSD_VERSION=$(uname -K)