[PATCH v2] f_audio: update device specific logic
Export this patch
From: Bobby Hamblin <hamblingreen@hotmail.com>
accidentally removed line 60 from script in v1
---
scripts/f_audio | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/f_audio b/scripts/f_audio
index 26d4e31..12afc0e 100755
--- a/scripts/f_audio
+++ b/scripts/f_audio
@@ -49,7 +49,11 @@ devicepine64pinephone() {
main() {
local RUN OPTS
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="speaker headphone earpiece volup voldown"
[ -p /tmp/fbp.fifo ] && { echo -e "\b\f\r"; echo "$OPTS" | tr " " "\n"; } > /tmp/fbp.fifo
while true; do
--
2.38.0