diff options
Diffstat (limited to 'audio-soft/gnomeradio2/CONFIGURE')
-rwxr-xr-x | audio-soft/gnomeradio2/CONFIGURE | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/audio-soft/gnomeradio2/CONFIGURE b/audio-soft/gnomeradio2/CONFIGURE new file mode 100755 index 0000000000..cd51e34a9c --- /dev/null +++ b/audio-soft/gnomeradio2/CONFIGURE @@ -0,0 +1,46 @@ + while [ "${RADIO_DEVICE}" == "" ]; do + message "${MESSAGE_COLOR}The following questions will setup the device to use ${SPELL_COLOR}radio${DEFAULT_COLOR}${MESSAGE_COLOR} on:${DEFAULT_COLOR}" + + for RADIO_DEVICE in `ls ${INSTALL_ROOT}/dev/v4l/radio* 2>${INSTALL_ROOT}/dev/null` `ls ${INSTALL_ROOT}/dev/radio* 2>${INSTALL_ROOT}/dev/null` ; do + if query "Use ${RADIO_DEVICE} for the radio device? " y; then + echo "RADIO_DEVICE=${RADIO_DEVICE}" >> ${SPELL_CONFIG} + break + else + unset RADIO_DEVICE + fi + done + done + echo "RADIO_DEVICE=$RADIO_DEVICE" > $SPELL_CONFIG + + while [ "${MIXER_DEVICE}" == "" ]; do + message "${MESSAGE_COLOR}The following questions will setup the device to use ${SPELL_COLOR}mixer${DEFAULT_COLOR}${MESSAGE_COLOR} on:${DEFAULT_COLOR}" + + for MIXER_DEVICE in `ls ${INSTALL_ROOT}/dev/sound/mixer* 2>${INSTALL_ROOT}/dev/null` `ls ${INSTALL_ROOT}/dev/mixer* 2>${INSTALL_ROOT}/dev/null` ; do + if query "Use ${MIXER_DEVICE} for the mixer device? " y; then + echo "MIXER_DEVICE=${MIXER_DEVICE}" >> ${SPELL_CONFIG} + break + else + unset MIXER_DEVICE + fi + done + done + echo "MIXER_DEVICE=$MIXER_DEVICE" >> $SPELL_CONFIG + + while [ "${AUDIO_DEVICE}" == "" ]; do + message "${MESSAGE_COLOR}The following questions will setup the device to use ${SPELL_COLOR}audio input${DEFAULT_COLOR}${MESSAGE_COLOR} on:${DEFAULT_COLOR}" + + for AUDIO_DEVICE in `ls ${INSTALL_ROOT}/dev/sound/audio* 2>${INSTALL_ROOT}/dev/null` `ls ${INSTALL_ROOT}/dev/audio* 2>${INSTALL_ROOT}/dev/null` ; do + if query "Use ${AUDIO_DEVICE} for the audio input device? " y; then + echo "AUDIO_DEVICE=${AUDIO_DEVICE}" >> ${SPELL_CONFIG} + break + else + unset AUDIO_DEVICE + fi + done + done + echo "AUDIO_DEVICE=$AUDIO_DEVICE" >> $SPELL_CONFIG + + if query "Disable lirc (infrared control) support? " n + then echo 'OPTS="$OPTS --enable-lirc=no"' >> $SPELL_CONFIG + fi +
\ No newline at end of file |