Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Please wait, this may take a while..."
- for file in ./*.iso
- do
- gameId=$(head -c 4 "$file") # Game ID is an ascii string stored in the first six bytes of the header
- gameSha1=$(sha1sum "$file") # Calculate SHA1 checksum for the file (would use CRC32 but that needs an extra program to be installed while sha1sum is installed by default)
- redumpData=$(wget -qO- "http://redump.org/discs/quicksearch/$gameId") # Get redump.org entry for this game
- case $redumpData in
- *"$gameId"*)
- echo "$file (Game ID: $gameId): Found matching checksum in redump database, this dump should be OK!"
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement