1 Star 0 Fork 1

zzzkky/xmrig_setup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uninstall_skypool_miner.sh 740 Bytes
一键复制 编辑 原始数据 按行查看 历史
zzzkky 提交于 2021-01-19 18:43 . init
#!/bin/bash
VERSION=0.1
# printing greetings
echo "Skypool mining uninstall script v$VERSION."
echo
if [ -z $HOME ]; then
echo "ERROR: Please define HOME environment variable to your home directory"
exit 1
fi
if [ ! -d $HOME ]; then
echo "ERROR: Please make sure HOME directory $HOME exists"
exit 1
fi
echo "[*] Removing skypool miner"
if sudo -n true 2>/dev/null; then
sudo systemctl stop skypool_miner.service
sudo systemctl disable skypool_miner.service
rm -f /etc/systemd/system/skypool_miner.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
fi
sed -i '/skypool/d' $HOME/.profile
killall -9 xmrig
echo "[*] Removing $HOME/skypool directory"
rm -rf $HOME/skypool
echo "[*] Uninstall complete"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zzzkky/xmrig_setup.git
git@gitee.com:zzzkky/xmrig_setup.git
zzzkky
xmrig_setup
xmrig_setup
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385