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
# 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