Revision c66b57fc pc-bios/optionrom/signrom.sh
b/pc-bios/optionrom/signrom.sh | ||
---|---|---|
39 | 39 |
|
40 | 40 |
sum=$(( $sum % 256 )) |
41 | 41 |
sum=$(( 256 - $sum )) |
42 |
sum_octal=$( printf "%o" $sum ) |
|
42 | 43 |
|
43 | 44 |
# and write the output file |
44 | 45 |
cp "$1" "$2" |
45 |
printf "\\$sum" | dd of="$2" bs=1 count=1 seek=$size conv=notrunc 2>/dev/null |
|
46 |
printf "\\$sum_octal" | dd of="$2" bs=1 count=1 seek=$size conv=notrunc 2>/dev/null |
Also available in: Unified diff