clean comments
This commit is contained in:
parent
63109fc217
commit
dc908df1a4
1 changed files with 2 additions and 4 deletions
|
@ -4,13 +4,10 @@ if [ -z $OUTPUT_DIR ] ; then
|
|||
source scan-dmidecode
|
||||
fi
|
||||
|
||||
DISKS=`smartctl --scan | cut -d ' ' -f 1` # | sed 's/^.*\/// ; s/$//'`
|
||||
#echo $DISKS
|
||||
#exit
|
||||
DISKS=`smartctl --scan | cut -d ' ' -f 1`
|
||||
#DISKS=sda
|
||||
for DISK in ${DISKS}
|
||||
do
|
||||
#echo $DISK #-n "$DISK:" #>> $OUTPUT_DIR/disk.lst
|
||||
echo -n "$DISK:" >> $OUTPUT_DIR/disk.lst
|
||||
smartctl -i $DISK \
|
||||
| grep -i 'serial number' \
|
||||
|
@ -18,3 +15,4 @@ smartctl -i $DISK \
|
|||
| sed 's/\s\+//' \
|
||||
>> $OUTPUT_DIR/disk.lst
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue