Skip to content

Commit

Permalink
contrib: add example rules script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ella-0 committed Aug 10, 2024
1 parent 45fac06 commit 9d58363
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/libudev-zero-rules-helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh -e

if [ "$SUBSYSTEM" = "sound" ]
then
if printf '%s' "$SYSNAME" | grep '^card' > /dev/null
then
printf 'SOUND_INITIALIZED=1\n'
fi

if printf '%s' "$SYSNAME" | grep '^pcmC.*D2c$' > /dev/null \
&& grep '^AppleJ' "$SYSPATH/device/id" 2>/dev/null
then
printf 'ACP_IGNORE=1\n'
fi
fi

0 comments on commit 9d58363

Please sign in to comment.