Update Quili.sh

This commit is contained in:
smeb y 2024-06-06 22:53:06 +08:00 committed by GitHub
parent 26cd06a11b
commit 73ff551aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,20 @@ git clone https://github.com/a3165458/ceremonyclient.git
# 进入ceremonyclient/node目录 # 进入ceremonyclient/node目录
cd ceremonyclient/node cd ceremonyclient/node
echo "请选择要切换的版本:"
echo "1. 限制CPU50%性能版本"
echo "2. CPU性能拉满版本"
read -p "请输入选项(1或2): " version_choice
if [ "$version_choice" -eq 1 ]; then
git switch release git switch release
elif [ "$version_choice" -eq 2 ]; then
git switch release-non-datacenter
else
echo "无效的选项,退出脚本。"
exit 1
fi
# 赋予执行权限 # 赋予执行权限
chmod +x release_autorun.sh chmod +x release_autorun.sh
@ -217,7 +230,20 @@ qclient token balance
function unlock_performance() { function unlock_performance() {
cd ~/ceremonyclient/node cd ~/ceremonyclient/node
echo "请选择要切换的版本:"
echo "1. 限制CPU50%性能版本"
echo "2. CPU性能拉满版本"
read -p "请输入选项(1或2): " version_choice
if [ "$version_choice" -eq 1 ]; then
git switch release
elif [ "$version_choice" -eq 2 ]; then
git switch release-non-datacenter git switch release-non-datacenter
else
echo "无效的选项,退出脚本。"
exit 1
fi
# 赋予执行权限 # 赋予执行权限
chmod +x release_autorun.sh chmod +x release_autorun.sh
@ -225,6 +251,7 @@ chmod +x release_autorun.sh
# 创建一个screen会话并运行命令 # 创建一个screen会话并运行命令
screen -dmS Quili bash -c './release_autorun.sh' screen -dmS Quili bash -c './release_autorun.sh'
echo "=======================已解锁CPU性能限制并启动quilibrium 挖矿请退出脚本使用screen 命令或者使用查看日志功能查询状态=========================================" echo "=======================已解锁CPU性能限制并启动quilibrium 挖矿请退出脚本使用screen 命令或者使用查看日志功能查询状态========================================="
} }
@ -258,7 +285,7 @@ function main_menu() {
echo "=========================收米查询================================" echo "=========================收米查询================================"
echo "6. 查询余额" echo "6. 查询余额"
echo "=========================解锁性能限制================================" echo "=========================解锁性能限制================================"
echo "7. CPU性能解锁(解锁会自动启动挖矿,请关闭之前的进程)" echo "7. 切换CPU性能版本(解锁会自动启动挖矿,请关闭之前的进程)"
read -p "请输入选项1-6: " OPTION read -p "请输入选项1-6: " OPTION