~mil/framebufferphone-devel

update device-specific logic to include more platforms v1 PROPOSED

Bobby Hamblin: 1
 update device-specific logic to include more platforms

 1 files changed, 5 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/framebufferphone-devel/patches/35146/mbox | git am -3
Learn more about email & git

[PATCH] update device-specific logic to include more platforms Export this patch

---
 scripts/f_youtube | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/f_youtube b/scripts/f_youtube
index ac4ca88..6e8f368 100755
--- a/scripts/f_youtube
+++ b/scripts/f_youtube
@@ -73,7 +73,11 @@ main() {
  local AV QUERY

  env | grep -q "^$(basename "$0" | tr '[a-z]' '[A-Z]')=" || eval "$VAR"
  eval "$(grep deviceinfo_codename /etc/deviceinfo | cut -d= -f2 | tr -d \"- | xargs -ID echo deviceD)"
eval "$(
  grep -E 'deviceinfo_codename|PRETTY_HOSTNAME' /etc/deviceinfo /etc/machine-info | 
  cut -d= -f2 | tr '[:upper:]' '[:lower:]' | tr -d ' \"-' |
  xargs -ID echo deviceD
)"

  OPTS="audio video"
  [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\r"; echo "$OPTS" | tr " " "\n"; } > /tmp/fbp.fifo
-- 
2.37.3