SHARE
TWEET

PUSHFW

a guest Oct 16th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. md5orig=`md5sum -b < "download.bin"`
  3. md5device=0
  4. md5new=`md5sum -b < "clppa_new.bin"`
  5. echo $md5orig
  6. echo $md5new
  7. count=20
  8. until [ $count -lt 1 ];do
  9. echo $count
  10.  
  11.  
  12. dd of=dev/sdb if=clppa_new.bin
  13. dd if=dev/sdb of=devdownload.bin bs=512 count=$((0x7800))
  14. md5device=`md5sum -b < "devdownload.bin"`
  15. [[ "$md5device" != "$md5orig" ]] && echo "device != original"
  16. [[ "$md5device" == "$md5new" ]] && count=0 && echo "SUCCESS!"
  17. count=$((count -1))
  18. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top