From b080b512834716ba6073364e3e7fa32b45dfb4a7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 11 Apr 2022 13:13:24 -0400 Subject: [PATCH] Only offer items on architectures where they actually make sense. --- configure-stormux.sh | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/configure-stormux.sh b/configure-stormux.sh index 9f9cade..149ae03 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -26,6 +26,8 @@ source .includes/functions.sh # Include the dialog based UI source .includes/ui.sh +# Get architecture +architecture="$(uname -m)" # Make sure basic xdg directory structure is in place: if [[ ! -d ~/Desktop ]]; then @@ -85,19 +87,26 @@ while [[ "$choice" != "Exit" ]]; do exit $? ;; esac - choice="$(menulist \ - "Change username" \ - "Configure internet" \ - "Enable Bluetooth" \ - "Install Lxqt Desktop" \ - "Install Mate Desktop" \ - "Install Ratpoison Windowmanager" \ - "Screen reader" \ - "Set up gaming" \ - "Set timezone" \ - "Get help on IRC" \ - "Update configure-stormux" \ - )" || break + options=( + "Change username" + "Configure internet" + ) + if [[ "${architecture}" == "aarch64" ]]; then + options+=("Enable Bluetooth") + fi + options+=("Install Lxqt Desktop" + "Install Mate Desktop" + "Install Ratpoison Windowmanager" + "Screen reader" + ) + if [[ "${architecture}" == "armv7l" ]]; then + options+=("Set up gaming") + fi + options+=("Set timezone" + "Get help on IRC" + "Update configure-stormux" + ) + choice="$(menulist "${options[@]}")" || break done exit 0