about summary refs log tree commit diff
path: root/nyx_mode/build_nyx_support.sh
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-02-10 12:12:02 +0100
committerGitHub <noreply@github.com>2022-02-10 12:12:02 +0100
commit1d4f1e48797c064ee71441ba555b29fc3f467983 (patch)
tree66124b018da5451bd5eb578c460bd27e0614e52e /nyx_mode/build_nyx_support.sh
parent2d9325aed9bde0630162a5efaac33a2a8f5bb252 (diff)
parentde7058b75b629011246be12b4ae7df1e504925b1 (diff)
downloadafl++-1d4f1e48797c064ee71441ba555b29fc3f467983.tar.gz
Merge pull request #1326 from AFLplusplus/dev
push to stable
Diffstat (limited to 'nyx_mode/build_nyx_support.sh')
-rwxr-xr-xnyx_mode/build_nyx_support.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/nyx_mode/build_nyx_support.sh b/nyx_mode/build_nyx_support.sh
index 3cb13cf1..83e0ae32 100755
--- a/nyx_mode/build_nyx_support.sh
+++ b/nyx_mode/build_nyx_support.sh
@@ -13,6 +13,13 @@ if [ ! "`uname -s`" = "Linux" ]; then
 
 fi
 
+if [ ! "`uname -m`" = "x86_64" ]; then
+
+  echo "[-] Error: Nyx mode is only available on x86_64 (yet)."
+  exit 0
+
+fi
+
 echo "[*] Making sure all Nyx is checked out"
 
 git status 1>/dev/null 2>/dev/null
@@ -34,9 +41,9 @@ else
 
 fi
 
-test -d QEMU-Nyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
-test -d packer/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
-test -d libnyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -e packer/.git || { echo "[-] packer not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -e libnyx/.git || { echo "[-] libnyx not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -e QEMU-Nyx/.git || { echo "[-] QEMU-Nyx not checked out, please install git or check your internet connection." ; exit 1 ; }
 
 echo "[*] checking packer init.cpio.gz ..."
 if [ ! -f "packer/linux_initramfs/init.cpio.gz" ]; then