~增加GeoSite数据库手动更新
~SSH固化功能支持密码设置
This commit is contained in:
juewuy
2022-03-17 23:26:50 +08:00
parent 716ee61799
commit 523528b700
3 changed files with 11 additions and 3 deletions

View File

@@ -1232,15 +1232,17 @@ tools(){
echo -e "\033[33m本功能使用软件命令进行固化不保证100%成功!\033[0m"
echo -e "本功能需依赖clash服务请确保clash为开机启动状态"
echo -e "\033[33m如有问题请加群反馈\033[36;4mhttps://t.me/clashfm\033[0m"
read -p "请输入需要还原的SSH密码(不影响当前密码,回车可跳过) > " mi_autoSSH_pwd
mi_autoSSH=已启用
if [ "$systype" = "mi_snapshot" ];then
cp -f /etc/dropbear/dropbear_rsa_host_key $clashdir/dropbear_rsa_host_key 2>/dev/null
echo -e "\033[32m检测当前为小米镜像化系统已将SSH秘钥备份到脚本安装目录\033[0m"
echo -e "\033[32mClash会在启动时自动还原已备份的秘钥文件\033[0m"
fi
sleep 2
echo -e "\033[32m设置成功\033[0m"
fi
setconfig mi_autoSSH $mi_autoSSH
setconfig mi_autoSSH_pwd $mi_autoSSH_pwd
tools
else
errornum