Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- USERNAME=dave
- echo enter bminer version in format "bminer-v15.7.1-1c421a5-amd64.tar.xz"
- read BMINER_VERSION
- echo "download started"
- cd /home/$USERNAME/Downloads/
- wget https://www.bminercontent.com/releases/$BMINER_VERSION
- echo "extract started"
- tar xf $BMINER_VERSION
- rm $BMINER_VERSION
- #extension (.tar.xz) und platform (-amd64) = 13 Zeichen im string entfernen
- BMINER_FOLDER=$(echo "$BMINER_VERSION" | sed 's/.\{13\}$//' )
- echo "kill bminer process"
- killall -v bminer
- echo "pause"
- cp /home/$USERNAME/Downloads/$BMINER_FOLDER/bminer /home/$USERNAME/bminer
- rm -R /home/$USERNAME/Downloads/$BMINER_FOLDER
- echo "reboot recommended"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement