pmaports/hybris/pulseaudio-modules-droid/pulseaudio-modules-droid.post-install
Luca Weiss e350b00b9b
treewide: chmod -x files (MR 1237)
We don't want executable APKBUILDs, deviceinfo files, etc in pmaports.
Remove the executable bit from those files.

[ci:skip-build]
[ci:skip-vercheck]
2020-05-23 17:29:18 +02:00

17 lines
374 B
Bash

#!/bin/sh
# pulseaudio default config file name
DEFAULT_PA=/etc/pulse/default.pa
# configuration lines
PA_LINES="
.ifexists /etc/pulse/arm_droid_card_custom.pa
.include /etc/pulse/arm_droid_card_custom.pa
.else
load-module module-droid-card
.endif
"
if [ -f ${DEFAULT_PA} ]; then
if ! grep -q "module-droid-card" $DEFAULT_PA; then
echo "$PA_LINES" >> $DEFAULT_PA
fi
fi