modif listing carte mère
This commit is contained in:
parent
1950004ebd
commit
844f5b3787
@ -12,7 +12,7 @@ usage()
|
||||
|
||||
# test du nombre d'arguments < 2
|
||||
#if [ "${#}" -lt 2 ]
|
||||
#then usage
|
||||
#then usage
|
||||
# exit 3
|
||||
#fi
|
||||
# test du type de PC (Portable ou Desktop)
|
||||
@ -39,7 +39,7 @@ echo ' /********** Identification BIOS **********' >> $FILE
|
||||
#*********** Identification CARTE MERE *************
|
||||
echo '' >> $FILE
|
||||
echo ' /********** Identification CARTE MERE **********' >> $FILE
|
||||
/usr/sbin/dmidecode -t baseboard | sed -n '/Manufacturer/p;/Product/p;/Serial/p' >> $FILE
|
||||
/usr/sbin/lshw | grep -A 5 "description: Carte mère" >> $FILE
|
||||
|
||||
#*********** Identification CARTE GRAPHIQUE *************
|
||||
echo '' >> $FILE
|
||||
@ -98,12 +98,12 @@ do
|
||||
echo '' >> $FILE
|
||||
echo " /********** Test du disk #$DISK# **********" >> $FILE
|
||||
/usr/sbin/smartctl -H /dev/$DISK| grep -c "PASSED"
|
||||
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
/usr/sbin/smartctl -a /dev/$DISK >> $FILE
|
||||
echo "############ Problème sur le disque $DISK ########################"
|
||||
echo "############ Problème sur le disque $DISK ########################" >>$FILE
|
||||
|
||||
|
||||
echo '' >> $FILE
|
||||
else
|
||||
/usr/sbin/smartctl -i /dev/$DISK >> $FILE
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
rsync -aP *.txt 192.168.1.253::lalis-ordis
|
||||
SERIAL=`grep -is -m 1 "serial number" ./identification.txt`
|
||||
DIRNAME=${SERIAL##* }
|
||||
mkdir
|
||||
rsync -aP *.txt lalis69.ddns.net::lalis-ordis
|
||||
|
Reference in New Issue
Block a user