diff options
Diffstat (limited to 'audio-drivers/alsa-driver/CONFIGURE')
-rwxr-xr-x | audio-drivers/alsa-driver/CONFIGURE | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio-drivers/alsa-driver/CONFIGURE b/audio-drivers/alsa-driver/CONFIGURE new file mode 100755 index 0000000000..cccc535816 --- /dev/null +++ b/audio-drivers/alsa-driver/CONFIGURE @@ -0,0 +1,19 @@ +if ! grep -q "CARDS=" $SPELL_CONFIG; then + + rm -f /etc/modules.d/alsa + cp /etc/modules.conf /tmp/modules.conf + grep -v "alsa" < /tmp/modules.conf > /etc/modules.conf + + CARDLIST=`cat $SCRIPT_DIRECTORY/sound.cards` && + + CARDS=`dialog --backtitle "ALSA Configuration Menu" \ + --stdout \ + --checklist "Select sound cards" \ + 0 0 0 \ + $CARDLIST` + + CARDS=`echo $CARDS | sed s/\"//g | sed s/" "/,/g` && + + echo "CARDS=$CARDS" >> $SPELL_CONFIG + +fi |