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