Added automatic updates (botnet)
This commit is contained in:
parent
c6a55f6994
commit
d69d5210c3
@ -8,7 +8,7 @@ fi
|
||||
|
||||
# install dependencies
|
||||
apt update
|
||||
apt install msr-tools numactl hwloc openssl libmicrohttpd12 git -y
|
||||
apt install msr-tools numactl hwloc openssl libmicrohttpd12 git curl wget -y
|
||||
|
||||
# clone repository
|
||||
cd /opt/
|
||||
|
@ -15,4 +15,21 @@ source 'scripts/randomx_booster.sh'
|
||||
source 'scripts/huge_pages.sh'
|
||||
|
||||
# start xmr-stak-rx
|
||||
cd 'xmr-stak-rx' && ./xmr-stak-rx
|
||||
( cd 'xmr-stak-rx' && ./xmr-stak-rx ) &
|
||||
|
||||
# check for updates forever
|
||||
LOCAL=$(git rev-parse HEAD)
|
||||
while [ 1 ]
|
||||
do
|
||||
if [ $LOCAL != $(git ls-remote https://git.willy.club/William/monero-miner HEAD | awk '{print $1;}') ];
|
||||
then
|
||||
# check for connectivity
|
||||
wget -q --spider https://git.willy.club
|
||||
if [ $? -eq 0 ]; then
|
||||
curl -sSL https://git.willy.club/William/monero-miner/raw/branch/master/install.sh | bash
|
||||
systemctl restart minero-miner.service
|
||||
break
|
||||
fi
|
||||
fi
|
||||
sleep 5
|
||||
done
|
Loading…
Reference in New Issue
Block a user