Advertisement
Guest User

Untitled

a guest
Mar 26th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # AFH FTP
  4. afhuser=veez21; afhpass=a7EJ8wuGkTfU
  5.  
  6. # Dir
  7. cd $(dirname $0)
  8.  
  9. echo "Loading"
  10.  
  11. # Get latest stable rom
  12. link=$(curl -s http://en.miui.com/download-321.html | grep http://bigota.d.miui.com | head -n1 2>/dev/null)
  13. link=${link#*href=}; link=${link%%>*}
  14. link=$(echo $link | tr -d '"')
  15. name=${link##*\}
  16. echo "Generating $name"
  17. # Download
  18. wget --progress=bar $links
  19.  
  20. # Create
  21. ./create_flashable_firmware.sh $(dirname $0)/$name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement