#!/bin/bash
# Get Manufacturer
marca=$(sudo dmidecode -t 1 | grep "Manufacturer" | cut -d":" -f2 | tail -n1)
if [ $marca == "LENOVO" ]; then
echo "lenovo"
zenity --question --title="teste" --text="teste: $marca"
fi
## Dell
if [ $marca == "Dell Inc." ] || [ $marca == "DELL" ]; then
echo "dell"
zenity --question --title="teste" --text="teste: $marca"
fi
# HP
if [ $marca == "HP" ]; then
echo "HP"
zenity --question --title="teste" --text="teste: $marca"
fi
# Positivo
if [ $marca == "Positivo" ]; then
echo "Positivo"
zenity --question --title="teste" --text="teste: $marca"
fi
# Itautec
if [ $marca == "Itautec" ]; then
echo "Itautec"
zenity --question --title="teste" --text="teste: $marca"
fi
# CCE
if [ $marca == "CCE" ]; then
echo "CCE"
zenity --question --title="teste" --text="teste: $marca"
fi
case $? in
0) echo "0" ;;
1) echo "1" ;;
esac
zenity --info --text="$marca"