Created
October 14, 2018 23:29
-
-
Save elementalvoid/8f3daa93c3eef6e25df4d3f455aebdb4 to your computer and use it in GitHub Desktop.
get-sony-alpha55-gps.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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