~增加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

@@ -129,6 +129,7 @@ autoSSH(){
[ -z "$(pidof dropbear)" -o -z "$(netstat -ntul | grep :22)" ] && {
sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear
/etc/init.d/dropbear restart
[ -n "$mi_autoSSH_pwd" ] && echo -e "$mi_autoSSH_pwd\n$mi_autoSSH_pwd" | passwd root
}
#备份还原SSH秘钥
[ -f $clashdir/dropbear_rsa_host_key ] && ln -sf $clashdir/dropbear_rsa_host_key /etc/dropbear/dropbear_rsa_host_key