Ubuntu Pastebin

Paste from script at Mon, 9 May 2016 13:40:17 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/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"
Download as text