29de974b89
Signed-off-by: Danct12 <danct12@disroot.org>
17 lines
374 B
Bash
Executable file
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
|