From 2fd51ca53e2caa12c5d1842424f827b94ab8b2a1 Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis <5252246+antheas@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:30:05 +0200 Subject: [PATCH] chore(hhd): add OneXPlayer, Ayaneo, and GPD to hhd supported devices (#1743) --- .../shared/usr/libexec/hwsupport/hhd-supported-hardware | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system_files/desktop/shared/usr/libexec/hwsupport/hhd-supported-hardware b/system_files/desktop/shared/usr/libexec/hwsupport/hhd-supported-hardware index 5fb23096..96111ea3 100755 --- a/system_files/desktop/shared/usr/libexec/hwsupport/hhd-supported-hardware +++ b/system_files/desktop/shared/usr/libexec/hwsupport/hhd-supported-hardware @@ -1,5 +1,10 @@ #!/usr/bin/bash # Returns true for hardware that is supported by HHD +VEN_ID="$(cat /sys/devices/virtual/dmi/id/sys_vendor)" +if [[ ":ONE-NETBOOK:GPD:AYANEO:" =~ ":$VEN_ID:" ]]; then + exit 0 +fi + SYS_ID="$(/usr/libexec/hwsupport/sysid)" if [[ ":ROG Ally RC71L:ROG Ally X RC72LA:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:AIR 1S:AIR 1S Limited:AIR:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:AOKZOE A1 Pro:G1619-04:Win600:Loki Max:Loki Zero:Loki MiniPro:V3:ONEXPLAYER F1:ONEXPLAYER F1L:ONEXPLAYER F1 EVA-01:" =~ ":$SYS_ID:" ]]; then exit 0