Add option to install linux-rpi-16k for the pi 5.

This commit is contained in:
Storm Dragon 2024-02-16 01:17:04 -05:00
parent 4a325e67cb
commit 27f54b1a29

View File

@ -74,6 +74,9 @@ while [[ "$choice" != "Exit" ]]; do
sudo "${sudoFlags[@]}" sed -i 's/^#AutoEnable=false$/AutoEnable=true/' /etc/bluetooth/main.conf sudo "${sudoFlags[@]}" sed -i 's/^#AutoEnable=false$/AutoEnable=true/' /etc/bluetooth/main.conf
sudo "${sudoFlags[@]}" systemctl enable bluetooth --now sudo "${sudoFlags[@]}" systemctl enable bluetooth --now
;; ;;
"Install Raspberry Pi 5 kernel")
install_package linux-rpi-16k
;;
"Install Lxqt Desktop") "Install Lxqt Desktop")
source .includes/gui.sh lxqt source .includes/gui.sh lxqt
;; ;;
@ -103,9 +106,10 @@ while [[ "$choice" != "Exit" ]]; do
options=( options=(
"Change username" "Change username"
"Configure internet" "Configure internet"
"Enable Bluetooth"
) )
if [[ "$(systemctl is-active bluetooth)" == "inactive" ]] && [[ "${architecture}" == "aarch64" ]]; then if [[ "$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ')" == "Raspberry Pi 5" ]]; then
options+=("Enable Bluetooth") options+=("Install Raspberry Pi 5 kernel")
fi fi
options+=("Install Lxqt Desktop" options+=("Install Lxqt Desktop"
"Install Mate Desktop" "Install Mate Desktop"