fix: just recipe infer DeckHD on bios install (#1685)

This commit is contained in:
Marco Vermeulen 2024-09-20 20:49:19 +01:00 committed by GitHub
parent a6fe9a1952
commit deeb6a3030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,8 +33,8 @@ install-deckhd-bios:
#!/usr/bin/bash
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
RESOLUTION=$(sudo lshw -json -c display | jq -r .[]."configuration"."resolution")
if [[ "${RESOLUTION}" = "1200,1920" ]]; then
RESOLUTION=$(xrandr --display :0 | grep '*' | uniq | awk '{print $1}')
if [[ "${RESOLUTION}" = "1920x1200" ]]; then
sudo systemctl mask --now jupiter-biosupdate.service
wget -q https://deckhd.com/downloads/install.sh -O /tmp/deckhd-install.sh
chmod +x /tmp/deckhd-install.sh
@ -51,8 +51,8 @@ enable-deck-bios-firmware-updates:
#!/usr/bin/bash
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then
RESOLUTION=$(sudo lshw -json -c display | jq -r .[]."configuration"."resolution")
if [[ "${RESOLUTION}" = "1200,1920" ]]; then
RESOLUTION=$(xrandr --display :0 | grep '*' | uniq | awk '{print $1}')
if [[ "${RESOLUTION}" = "1920x1200" ]]; then
echo "DeckHD detected. Firmware updates enabled. BIOS updates not enabled."
elif [[ "$(awk '/MemTotal/{print $(NF-1)}' /proc/meminfo)" == "31664740" ]]; then
echo "32GB RAM modded Deck detected. Firmware updates enabled. BIOS updates not enabled."