This repository has been archived by the owner on Apr 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ethpill.txt
33 lines (33 loc) · 1.93 KB
/
ethpill.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Script by cYnIxX3 to install, disable, or remove OhGodAnETHlargementPill by OhGodACompany Original binaries no longer hosted officially, original install script at http://thecynix.com/install-ethpill.txt
# Run with `source <(curl -s https://raw.githubusercontent.com/cynixx3/1080hashup/master/ethpill.txt) (install | -i | disable | -d | remove | -r)`
if [[ "$1" =~ "install" ]] || [ -z "$1" ] || [[ "$1" =~ "-i" ]] ; then
if [ ! -f /opt/ethos/bin/OhGodAnETHlargementPill ] ; then
wget https://github.com/cynixx3/1080hashup/releases/download/2/ETHlargementPill-r2 -O /opt/ethos/bin/OhGodAnETHlargementPill
if ! echo "6f731c2372faf51b26adc96d4e8a1437a515f4f78de8ad1ab81e63bf6d60056a /opt/ethos/bin/OhGodAnETHlargementPill" | sha256sum -c ; then
echo "Download verification failed."
exit 1
fi
fi
chmod +x /opt/ethos/bin/OhGodAnETHlargementPill
if [ $(grep -c "OhGodAnETHlargementPill" /home/ethos/custom.sh) -eq "0" ]; then
sed 's,^exit 0$,sudo /opt/ethos/bin/OhGodAnETHlargementPill \&\nexit 0,' -i /home/ethos/custom.sh
else
sed '/Pill/ s,^#,,' -i /home/ethos/custom.sh
fi
if ! ps aux | grep -v grep | grep "ETHlargement" >/dev/null ; then
sudo /opt/ethos/bin/OhGodAnETHlargementPill 2>&1 >/dev/null &
fi
echo "1080 / 1080 TI Hash upgrade for eth Installed and started."
elif [[ "$1" =~ "disable" ]] || [[ $1 =~ "-d" ]] ; then
sudo killall -9 OhGodAnETHlargementPill
sed '/Pill/ s,^s,#s,' -i /home/ethos/custom.sh
echo "1080 / 1080 TI Hash upgrade for eth stopped and prevented from starting on next boot."
elif [[ "$1" =~ "remove" ]] || [[ $1 =~ "-r" ]] ; then
sudo killall -9 OhGodAnETHlargementPill
sed '/Pill/d' -i /home/ethos/custom.sh
rm -f /opt/ethos/bin/OhGodAnETHlargementPill
echo "1080 / 1080 TI Hash upgrade for eth stopped and removed from the system"
else
echo "Either run the command alone to install, with -d to disable, or with -r to remove Nothing else is helpful."
fi