Christian Geddes | 47007c2 | 2021-07-28 16:49:54 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | pdrdump_file=$1 | ||||
3 | printf "Dumping PDRs to $pdrdump_file ..." | ||||
4 | i=0 | ||||
5 | done=0 | ||||
6 | while [ $done -eq 0 ] | ||||
7 | do | ||||
8 | echo "pldmtool platform GetPDR -d $i" >> $pdrdump_file | ||||
9 | pldmtool platform GetPDR -d $i >> $pdrdump_file | ||||
10 | i=`grep nextRecordHandle $pdrdump_file | tail -n1 | awk '{print $2}'` | ||||
11 | i=${i::-1} | ||||
12 | if [ $i -eq 0 ]; then done=1; fi | ||||
13 | done | ||||
14 | printf " Complete!\n" |