#!/bin/sh

echo "CheckMotherBoard en cours ...";
echo "";test -e /bin/lspci; 
if [ $? = 0 ];
	then 
lspci | grep "00:01.0 PCI bridge: Intel Corporation Unknown device 29b1 (rev 02)"; 
	  else 
	     echo "MAJ des sourceslist";
	     apt-get update;
	     apt-get install pciutils;
		lspci | grep "00:01.0 PCI bridge: Intel Corporation Unknown device 29b1 (rev 02)";
	fi;

if [ $? = 0 ];
 then 
  echo ""; echo "La carte mere est une DQ35JO (Nouvelle Carte Mere)";
    else
      echo "";echo "La carte mere est une DP35DP (Ancienne Carte Mere)"; 
fi;
