#!/bin/bash
if [ "$Verbose" != "yes" ]
then
	exit 0
fi

. /usr/lib/eole/ihm.sh

EchoGras  "*** Configuration matérielle du serveur"
echo

Vendeur=`dmidecode  -s   system-manufacturer`
Materiel=`dmidecode  -s  system-product-name`

tempfile=$(mktemp)
/usr/bin/lshw -short -disable CPUID > $tempfile 2>/dev/null

echo "Type  : "
echo "$Materiel - $Vendeur"
echo

echo  "Processeur :"
/bin/grep "processor" $tempfile | awk -F "processor" '{print $2}'
echo

echo  "Carte réseau :"
/bin/grep "network" $tempfile | awk -F "network" '{print $2}'
echo

echo  "Disques :"
/bin/grep "disk" $tempfile | /bin/grep -v "partition" | awk -F "disk" '{print $2}'
echo

rm $tempfile

Pause
