chore: Clean up logic in bazzite-hardware-setup

This commit is contained in:
Kyle Gospodnetich 2023-11-20 22:26:47 -08:00
parent ba9e953db1
commit bd0af0e77d

View File

@ -116,7 +116,6 @@ else
fi fi
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
RESOLUTION=$(lshw -json -c display | jq -r .[]."configuration"."resolution") RESOLUTION=$(lshw -json -c display | jq -r .[]."configuration"."resolution")
if [[ "${RESOLUTION}" = "1200,1920" ]]; then if [[ "${RESOLUTION}" = "1200,1920" ]]; then
@ -127,7 +126,6 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
fi fi
elif [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then elif [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then
echo "Galileo hardware detected, skipping further setup..." echo "Galileo hardware detected, skipping further setup..."
fi
else else
echo "Generic device detected. Performing setup..." echo "Generic device detected. Performing setup..."
if [[ ":ROG Ally RC71L_RC71L:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:G1618-04:G1619-04:83E1:" =~ ":$SYS_ID:" ]]; then if [[ ":ROG Ally RC71L_RC71L:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:G1618-04:G1619-04:83E1:" =~ ":$SYS_ID:" ]]; then