diff --git a/scripts/scan-hdd b/scripts/scan-hdd index 591ee65..1e98ba3 100755 --- a/scripts/scan-hdd +++ b/scripts/scan-hdd @@ -5,14 +5,14 @@ if [ -z $OUTPUT_DIR ] ; then fi DISKS=`smartctl --scan | cut -d ' ' -f 1` -#DISKS=sda +#DISKS=/dev/sdb for DISK in ${DISKS} do -echo -n "$DISK:" >> $OUTPUT_DIR/disk.lst -smartctl -i $DISK \ -| grep -i 'serial number' \ -| cut -d ':' -f 2 \ -| sed 's/\s\+//' \ ->> $OUTPUT_DIR/disk.lst + echo -n "$DISK:" >> $OUTPUT_DIR/disk.lst + smartctl -i $DISK \ + | grep -i 'serial number' \ + | cut -d ':' -f 2 \ + | sed 's/\s\+//' \ + >> $OUTPUT_DIR/disk.lst done