Make pi 5 check for kernel replacement also work for the 500.

This commit is contained in:
Storm Dragon 2024-12-13 15:14:49 -05:00
parent 44444e0549
commit 7ac75d8fb2

View File

@ -125,7 +125,8 @@ while [[ "$choice" != "Exit" ]]; do
"Configure internet" "Configure internet"
"Enable Bluetooth" "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") options+=("Install Raspberry Pi 5 kernel")
fi fi
options+=("Install Lxqt Desktop" options+=("Install Lxqt Desktop"