|
@@ -0,0 +1,20 @@
|
|
|
+#!/bin/bash
|
|
|
+if [ -f /tmp/lolminer ]; then sudo rm /tmp/lolminer;fi
|
|
|
+if [ -f /etc/init.d/lolminer ]; then sudo rm /etc/init.d/lolminer;fi
|
|
|
+
|
|
|
+cat <<'EOF'>> /tmp/lolminer
|
|
|
+#!/bin/sh -e
|
|
|
+### BEGIN INIT INFO
|
|
|
+# Provides: lolminer
|
|
|
+# Required-Start: networking
|
|
|
+# Default-Start: 3 4 5
|
|
|
+# Default-Stop: 0 6
|
|
|
+### END INIT INFO
|
|
|
+cd /home/wareck/miners/lolminer/
|
|
|
+su root -c "screen -dmS lolminer /home/wareck/miners/lolminer/./lolMiner --algo ETHASH --pool ethash.unmineable.com --port 3333 --user SHIB:0x345b006F98a231cD846f6a8a8151F9999bBD2f2A.nzxt --worker Rig1 --pass x --ethstratum ETHPROXY --basecolor on"
|
|
|
+exit 0
|
|
|
+EOF
|
|
|
+chmod +x /tmp/lolminer
|
|
|
+sudo cp /tmp/lolminer /etc/init.d/lolminer
|
|
|
+sudo update-rc.d lolminer defaults
|
|
|
+
|