Guest User

PUSHFW

a guest
Oct 16th, 2017
114
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×