From 2566eef8ca3d7ba2b0d6b4f3032a795ee5a006c1 Mon Sep 17 00:00:00 2001 From: nacho Date: Mon, 4 Sep 2017 15:46:13 +0200 Subject: [PATCH] check for qemu-system-arm --- qemu-pi.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu-pi.sh b/qemu-pi.sh index e73f44a..729f8b0 100755 --- a/qemu-pi.sh +++ b/qemu-pi.sh @@ -35,7 +35,8 @@ BINARY_PATH=/usr/bin # path prefix for binaries NO_GRAPHIC=0 # set to 1 to start in no graphic mode # sanity checks -test -f $IMG && test -f $KERNEL || { echo "$IMG or $KERNEL not found"; exit; } +type qemu-system-arm &>/dev/null || { echo "QEMU ARM not found" ; exit 1; } +test -f $IMG && test -f $KERNEL || { echo "$IMG or $KERNEL not found"; exit 1; } [[ "$IFACE" == "" ]] || [[ "$BRIDGE" == "" ]] && NO_NETWORK=1