From ac972efc30fdddc501b49bb27232f3c0928590fb Mon Sep 17 00:00:00 2001 From: Dan Johansen Date: Wed, 11 Dec 2019 10:51:24 +0100 Subject: [PATCH] add check for qemu-static qemu-static.conf is a file that is also needed for the installer to work. So add a check and exit installer if it's not found. Also update version number to 1.2.9, forgot that in the previous commit. --- manjaro-arm-installer | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manjaro-arm-installer b/manjaro-arm-installer index b1754bc..78c2dc2 100755 --- a/manjaro-arm-installer +++ b/manjaro-arm-installer @@ -1,7 +1,7 @@ #! /bin/bash # ***************************** -# Version 1.2.8 +# Version 1.2.9 # ***************************** # Set globals @@ -50,6 +50,10 @@ for i in "${DEPENDNECIES[@]}"; do fi done +if [ ! -f "/usr/lib/binfmt.d/qemu-static.conf" ]; then + echo "qemu-static.conf file is missing. Please install the relevant package." + exit 1 +fi # Functions