indent
This commit is contained in:
parent
dc908df1a4
commit
37a733cb14
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue