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
1 changed files with 6 additions and 2 deletions

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[@]}" systemctl enable bluetooth --now
;;
"Install Raspberry Pi 5 kernel")
install_package linux-rpi-16k
;;
"Install Lxqt Desktop")
source .includes/gui.sh lxqt
;;
@ -103,9 +106,10 @@ while [[ "$choice" != "Exit" ]]; do
options=(
"Change username"
"Configure internet"
"Enable Bluetooth"
)
if [[ "$(systemctl is-active bluetooth)" == "inactive" ]] && [[ "${architecture}" == "aarch64" ]]; then
options+=("Enable Bluetooth")
if [[ "$(cat /sys/firmware/devicetree/base/model | cut -f-3 -d ' ')" == "Raspberry Pi 5" ]]; then
options+=("Install Raspberry Pi 5 kernel")
fi
options+=("Install Lxqt Desktop"
"Install Mate Desktop"