pmaports/hybris/pulseaudio-modules-droid/pulseaudio-modules-droid.post-install
2020-02-15 20:49:42 +01:00

17 lines
374 B
Bash
Executable file

#!/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