# # # Verifying downloaded software # ------------------------------ # http://www.cert.org/incident_notes/IN-2001-06.html # # # A script to check the md5 results against known good value # # # #!/bin/bash # # # # md5sum.chk "correct value" target-file.tgz # # # res=md5sum $1 # # # # wish i knew off the top of my itty-bitty head how to do # # do a "ignore case" compare in bash # # # # # if [ $0 ne $res] ; # then # echo "...you're bad ...expecting $0..got=$res for $2.." # else # echo "..you're okay.." # fi # # # # end # # # # End of file