#NAME=$1
if [ $1 = "10-000802cb2bf2" ]; then NAME="10-windowsill"; fi
if [ $1 = "10-000802cbd32a" ]; then NAME="10-balkong"; fi
if [ $1 = "10-000802cc09dc" ]; then NAME="10-server"; fi
if [ $1 = "10-000802cb373f" ]; then NAME="10-kontorinre"; fi
if [ $1 = "10-000802caf54b" ]; then NAME="10-kassateknik"; fi
if [ $1 = "28-03150431cfff" ]; then NAME="10-vardagsrumskrivbord"; fi
if [ $1 = "10-000802cbf255" ]; then NAME="10-test4"; fi
if [ $1 = "28-021503b654ff" ]; then NAME="10-kylen"; fi
if [ $1 = "28-021502f5c8ff" ]; then NAME="10-frysen"; fi
if [ $1 = "28-011561939aff" ]; then NAME="10-psu"; fi
if [ $1 = "28-021502d4ccff" ]; then NAME="10-serverskrubb"; fi
if [ $1 = "28-031503f24eff" ]; then NAME="10-drier"; fi
if [ $1 = "28-0115524b1dff" ]; then NAME="10-balkong"; fi
if [ $1 = "28-0000072989e9" ]; then NAME="10-vardagsrum"; fi
if [ $1 = "28-0000072a4e71" ]; then NAME="10-bilen"; fi
if [ $1 = "28-0000071d4394" ]; then NAME="10-sovrum"; fi
if [ $1 = "28-0000072a00c3" ]; then NAME="10-test-no-headers"; fi
if [ $1 = "28-0000072a5239" ]; then NAME="10-inluft"; fi
if [ $1 = "28-0000071d5745" ]; then NAME="10-kylen-slowed"; fi
if [ $1 = "28-0000072a985c" ]; then NAME="10-balkongny"; fi
if [ $1 = "28-0000071c5b82" ]; then NAME="10-ppmkontor"; fi
if [ $1 = "28-0000071d760e" ]; then NAME="10-sangen"; fi
if [ $1 = "28-00000050ea57" ]; then NAME="10-bilen"; fi
if [ $1 = "28-00000055248c" ]; then NAME="10-koket"; fi
if [ $1 = "28-00000052f391" ]; then NAME="10-koket"; fi
if [ $1 = "28-0000005370bb" ]; then NAME="10-vattentemp"; fi
if [ $1 = "28-0000005499d1" ]; then NAME="10-rck49n"; fi
if [ $1 = "bme-PI-59-tem" ]; then NAME="10-erpato"; fi
if [ $1 = "bme-PI-59-pre" ]; then NAME="10-erpato-pre"; fi
if [ $1 = "bme-PI-59-hum" ]; then NAME="10-erpato-hum"; fi
if [ $1 = "bme-PI-59-alt" ]; then NAME="10-erpato-alt"; fi
if [ $1 = "bme-PI-60-tem" ]; then NAME="10-erpato"; fi
if [ $1 = "bme-PI-60-pre" ]; then NAME="10-erpato-pre"; fi
if [ $1 = "bme-PI-60-hum" ]; then NAME="10-erpato-hum"; fi
if [ $1 = "bme-PI-60-alt" ]; then NAME="10-erpato-alt"; fi
if [ $1 = "bme-PI-48-tem" ]; then NAME="10-hemma"; fi
if [ $1 = "bme-PI-48-pre" ]; then NAME="10-hemma-pre"; fi
if [ $1 = "bme-PI-48-hum" ]; then NAME="10-hemma-hum"; fi
if [ $1 = "bme-PI-64-tem" ]; then NAME="10-hemma"; fi
if [ $1 = "bme-PI-64-pre" ]; then NAME="10-hemma-pre"; fi
if [ $1 = "bme-PI-64-hum" ]; then NAME="10-hemma-hum"; fi
if [ $1 = "bme-PI-48-alt" ]; then NAME="10-soffan-alt"; fi
if [ $1 = "mq7-PI-61" ]; then NAME="10-soffan-co"; fi
if [ $1 = "59127" ]; then NAME="hemma"; fi
if [ $1 = "52980" ]; then NAME="ppmkontor"; fi
#if [ $1 = "0xa167a3073b94-co2" ]; then NAME="10-hemma-co2"; fi
#if [ $1 = "0xa167a3073b94-tem" ]; then NAME="10-0xa167a3073b94-tem"; fi
#if [ $1 = "0xa167a3073b94-hum" ]; then NAME="10-0xa167a3073b94-hum"; fi
#if [ $1 = "0x8d87ef073bff-co2" ]; then NAME="10-ppmtaby-co2"; fi


#if [ $1 = "00000000ba65afcc" ]; then NAME="PI-41-BSTAN-BLACK-OFFICE"; fi
#if [ $1 = "0000000027a7801e" ]; then NAME="PI-42-BPLUS-NAKED-ATDESK"; fi
#if [ $1 = "000000006804e497" ]; then NAME="PI-43-BPLUS-NAKED-SERVER"; fi
#if [ $1 = "000000006a8294ac" ]; then NAME="PI-44-BPLUS-WHITE-LABRAT"; fi
#if [ $1 = "0000000023a0d823" ]; then NAME="PI-45-APLUS-NAKED-LABRAT"; fi
#if [ $1 = "000000002d069c23" ]; then NAME="PI-46-APLUS-NAKED-LABRAT"; fi
#if [ $1 = "00000000e517efd8" ]; then NAME="PI-47-BPLUS-BLACK-WEBDATA"; fi
#if [ $1 = "10-kontor_inre" ]; then NAME="PI-41-STAN-BLACK-OFFICE"; fi
#if [ $1 = "10-server" ]; then NAME="PI-43-PLUS-NAKED-SERVER"; fi
#if [ $1 = "10-balkong" ]; then NAME="PI-42-PLUS-NAKED-ATDESK"; fi

#if [ "$2" = "short" ]; then
#  NAME=$(grep "# PI" whoami.sh|grep $1|awk '{print $4}')
#fi
if [ "$2" = "desc" ]; then
  NAME=$(grep "# PI" whoami.sh|grep $1|awk -F '#' '{print $4}')
fi
if [ "$2" = "plats" ]; then
  NAME=$(grep "# PI" whoami.sh|grep $1|awk -F '#' '{print $7}')
fi
if [ "$2" = "display" ]; then
  NAME=$(grep "# PI" whoami.sh|grep $1|awk -F '#' '{print $6}')
fi
if [ "$2" = "roll" ]; then
  NAME=$(grep "# PI" whoami.sh|grep $1|awk -F '#' '{print $5}')
fi

if [ $(echo "$NAME"|wc -c) -eq 1 ]; then
  NAME=$(grep "# PI" whoami-pi.sh|grep $1|awk '{print $4}')
#  NAME=$(sh rename.sh $1)
fi
if [ $(echo "$NAME"|grep -e PI -e 10|wc -l) -eq 0 ]; then
  NAME=$1
fi
#if [ "$NAME" = "$1" ]; then
#  NAME=$(sh /home/html/temp.mandor.se/rename.sh $1 short)
#fi
echo $NAME
