Skip to content

Instantly share code, notes, and snippets.

@elementalvoid
Created October 14, 2018 23:29
Show Gist options
  • Save elementalvoid/8f3daa93c3eef6e25df4d3f455aebdb4 to your computer and use it in GitHub Desktop.
Save elementalvoid/8f3daa93c3eef6e25df4d3f455aebdb4 to your computer and use it in GitHub Desktop.
get-sony-alpha55-gps.sh
#!/bin/bash
wget -O assistme.dat http://control.d-imaging.sony.co.jp/GPS/assistme.dat
wget -O assistme.md5 http://control.d-imaging.sony.co.jp/GPS/assistme.md5
checksum=$(md5sum assistme.dat | awk '{print $1}')
sony_checksum=$(cat assistme.md5 | awk '{print $1}')
if [[ ${checksum} == ${sony_checksum} ]]; then
echo "Okay: Checksums match."
echo "Place files in: <sdcard>/PRIVATE/SONY/GPS/
else
echo "Warning: Checksums do not match!"
exit 2
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment