Only offer items on architectures where they actually make sense.

This commit is contained in:
Storm Dragon 2022-04-11 13:13:24 -04:00
parent afe8a28671
commit b080b51283

View File

@ -26,6 +26,8 @@
source .includes/functions.sh source .includes/functions.sh
# Include the dialog based UI # Include the dialog based UI
source .includes/ui.sh source .includes/ui.sh
# Get architecture
architecture="$(uname -m)"
# Make sure basic xdg directory structure is in place: # Make sure basic xdg directory structure is in place:
if [[ ! -d ~/Desktop ]]; then if [[ ! -d ~/Desktop ]]; then
@ -85,19 +87,26 @@ while [[ "$choice" != "Exit" ]]; do
exit $? exit $?
;; ;;
esac esac
choice="$(menulist \ options=(
"Change username" \ "Change username"
"Configure internet" \ "Configure internet"
"Enable Bluetooth" \ )
"Install Lxqt Desktop" \ if [[ "${architecture}" == "aarch64" ]]; then
"Install Mate Desktop" \ options+=("Enable Bluetooth")
"Install Ratpoison Windowmanager" \ fi
"Screen reader" \ options+=("Install Lxqt Desktop"
"Set up gaming" \ "Install Mate Desktop"
"Set timezone" \ "Install Ratpoison Windowmanager"
"Get help on IRC" \ "Screen reader"
"Update configure-stormux" \ )
)" || break if [[ "${architecture}" == "armv7l" ]]; then
options+=("Set up gaming")
fi
options+=("Set timezone"
"Get help on IRC"
"Update configure-stormux"
)
choice="$(menulist "${options[@]}")" || break
done done
exit 0 exit 0