mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-11 06:40:42 +00:00
fix: just recipe infer DeckHD on bios install (#1685)
This commit is contained in:
parent
a6fe9a1952
commit
deeb6a3030
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user