diff --git a/scripts/scan-hdd b/scripts/scan-hdd index a0c287f..591ee65 100755 --- a/scripts/scan-hdd +++ b/scripts/scan-hdd @@ -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 +