From ee59a12d59cb2db173a93b266c4766b853bd0364 Mon Sep 17 00:00:00 2001
From: Stephan Wendel <me@stephanwe.de>
Date: Tue, 13 Sep 2022 18:24:51 +0200
Subject: [PATCH] feat(install): Adds ubuntu armv7l support

Credits to https://github.com/gdachs.
Unfortunatly he didnt respond to my message.
But to give credits to, whos credits deserve.

Tested on an Odroid C1 with Ubuntu 20.04 on armv7l by gdachs.

See https://github.com/mainsail-crew/crowsnest/pull/32

Signed-off-by: Stephan Wendel <me@stephanwe.de>
---
 tools/install.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tools/install.sh b/tools/install.sh
index 3346e00..7e16472 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -127,6 +127,19 @@ function import_config {
         return 0
     fi
 
+    ## Ubuntu ARM (armv7l) tested on v20.04
+    # Thanks to https://github.com/gdachs
+    # To my sadness he didnt make wanted changes in
+    # https://github.com/mainsail-crew/crowsnest/pull/32
+    # But I appriciate your work, thx gdachs!
+    if [ "$(uname -m)" == "armv7l" ] &&
+    [ "$(get_os_version ubuntu)" != "0" ] &&
+    [ -f "tools/config.buntu64" ]; then
+        # shellcheck disable=SC1091
+        source tools/config.buntu64
+        return 0
+    fi
+
     ## Ubuntu ARM (aarch64) tested on v22.04
     if [ "$(uname -m)" == "aarch64" ] &&
     [ "$(get_os_version ubuntu)" != "0" ] &&