Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. USERNAME=dave
  4.  
  5. echo enter bminer version in format "bminer-v15.7.1-1c421a5-amd64.tar.xz"
  6. read BMINER_VERSION
  7.  
  8. echo "download started"
  9. cd /home/$USERNAME/Downloads/
  10. wget https://www.bminercontent.com/releases/$BMINER_VERSION
  11.  
  12. echo "extract started"
  13. tar xf $BMINER_VERSION
  14. rm $BMINER_VERSION
  15.  
  16. #extension (.tar.xz) und platform (-amd64) = 13 Zeichen im string entfernen
  17. BMINER_FOLDER=$(echo "$BMINER_VERSION"  | sed 's/.\{13\}$//' )
  18.  
  19. echo "kill bminer process"
  20. killall -v bminer
  21. echo "pause"
  22. cp /home/$USERNAME/Downloads/$BMINER_FOLDER/bminer /home/$USERNAME/bminer
  23. rm -R /home/$USERNAME/Downloads/$BMINER_FOLDER
  24. echo "reboot recommended"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement