SHARE
TWEET

Untitled

a guest Jul 17th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
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
 
Top