Skip to content

Commit 9c3852b

Browse files
committed
contrib: add example rules script
1 parent 6a79acf commit 9c3852b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh -e
2+
3+
if [ "$SUBSYSTEM" = "sound" ]
4+
then
5+
if printf '%s' "$SYSNAME" | grep '^card' > /dev/null
6+
then
7+
printf 'SOUND_INITIALIZED=1\n'
8+
fi
9+
10+
if printf '%s' "$SYSNAME" | grep '^pcmC.*D2c$' > /dev/null \
11+
&& grep '^AppleJ' "$SYSPATH/device/id" 2>/dev/null
12+
then
13+
printf 'ACP_IGNORE=1\n'
14+
fi
15+
fi

0 commit comments

Comments
 (0)