Path: | lib/boxgrinder-build/helpers/qemu.wrapper |
Last Update: | Mon Mar 19 13:16:47 +0000 2012 |
#!/bin/sh
if [ "`echo "$@" | grep "kvm" | wc -l`" -eq "1" ]; then
args=( "$@" "-no-kvm" )
else
args=( "$@" )
fi
if [ "`uname -a | grep x86_64 | wc -l`" -eq "1" ]; then
bin=/usr/bin/qemu-system-x86_64
else
bin=/usr/bin/qemu
fi
exec $bin "${args[@]}"