gen-checksums (452B)
1 #!/bin/sh 2 set -x 3 case $0 in (*/*) cd "${0%/*}" || exit $?;; esac 4 5 ./gen-listing boot-image checksums/boot-image.lst || exit $? 6 7 ( cd boot-image && find opt -type f -exec sha512sum '{}' + ) >checksums/sabotage-opt.sha512.tmp || exit $? 8 sort -k 2 <checksums/sabotage-opt.sha512.tmp >checksums/sabotage-opt.sha512.new || exit $? 9 rm checksums/sabotage-opt.sha512.tmp || exit $? 10 mv checksums/sabotage-opt.sha512.new checksums/sabotage-opt.sha512 || exit $?