# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
echo_info()
{
echo -e $1 | tee -a $YOCTOADT_INSTALL_LOG_FILE
}
select_install_type()
{
# If choosing silent install, all older installation data will be
# overriden without user's interaction
while true; do
#echo_info "[ADT_INST] Silent install means overrides all existing older"
#echo_info "[ADT_INST] data and the installation needs least user interaction"
#echo_info "[ADT_INST] If you want to use silent installation, please enter S:"
#echo_info "[ADT_INST] If you want to customize installation, please enter C:"
#echo_info "[ADT_INST} If you want to exit current installation, please enter X:"
echo_info "There're two ways you can do installation: silent mode or interactive mode. To choose silent mode, which means you opt for the system to override the existing data under the specified installation directories without prompting for your confirmation. Please be cautious with this selection which may trigger your losing data. With the interactive mode, you have to closely monitor the installation process, since it will prompt you each step it needs to override some existing data. To choose silent mode, please enter [S], for interactive mode, please enter [I] or [X] to exit the installation."
echo_info "[ADT_INST] Please enter your selections here:"