if  [  -f  /dev/v4l/radio*  ];  then
    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
fi 
