From 7ac75d8fb29ed837fb94244c23cfcaf46d8bfed9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 13 Dec 2024 15:14:49 -0500 Subject: [PATCH] Make pi 5 check for kernel replacement also work for the 500. --- configure-stormux.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure-stormux.sh b/configure-stormux.sh index 0ac548a..ef246d0 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -125,7 +125,8 @@ while [[ "$choice" != "Exit" ]]; do "Configure internet" "Enable Bluetooth" ) - if [[ "$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ')" == "Raspberry Pi 5" ]] && [[ "$(pacman -Q linux-rpi-16k &> /dev/null)" -eq 1 ]]; then + raspberryPiVersion=$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ') + if [[ "${raspberryPiVersion%0*}" == "Raspberry Pi 5" ]] && [[ "$(pacman -Q linux-rpi-16k &> /dev/null)" -eq 1 ]]; then options+=("Install Raspberry Pi 5 kernel") fi options+=("Install Lxqt Desktop"