#!/bin/sh
###############################################################################
# info.sh                                                                     #
# Script demonstruje cteni promennych z prostredi op. systemu a MicroTelu.    #
###############################################################################  

if [ "$OSTYPE" = "Linux" ]; then
  INTPR="-e"
  SAT="@"
else
  INTPR=""
  SAT=""
fi


echo $INTPR "\033]$SAT?MTVER@"
read MTVER 
echo $INTPR "\033]$SAT?MTDIR@" 
read MTDIR         
echo $INTPR "\033]$SAT?MTINI@" 
read MTINI 
echo $INTPR "\033]$SAT?WINDIR@" 
read WINDIR 
echo $INTPR "\033]$SAT?WINTEMPDIR@" 
read WINTEMPDIR 
echo $INTPR "\033]$SAT\044COMSPEC@"
read COMSPEC
echo $INTPR "\033]$SAT\044PATH@"
read DPATH 
echo $INTPR "\033]$SAT\044TMP@"
read DTMP           
echo $INTPR "\033]$SAT\044TEMP@"
read DTEMP

clear

echo $INTPR "\n\n\nInformace o emulatoru"
echo "---------------------"

echo "Verze emulatoru:               MicroTel v $MTVER"
echo "Domovsky adresar emulatoru:    $MTDIR"
echo "Konfiguracni soubor emulatoru: $MTINI"
echo "Adresar Windows:               $WINDIR"
echo "Docasny adresar Windows:       $WINTEMPDIR"


echo $INTPR "\n\nInformace o prostredi"
echo "---------------------"

echo "PATH:                          $DPATH"                        
echo "COMSPEC:                       $COMSPEC" 
echo "TMP:                           $DTMP"
echo "TEMP:                          $DTEMP"
echo $INTPR "\n\n"  
