Skip to content

Commit 2c44de9

Browse files
committed
修改
1 parent eb92139 commit 2c44de9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Termux/install-NH

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ function create_kex_launcher() {
367367
cat > $KEX_LAUNCHER <<- EOF
368368
#!/bin/bash
369369
370+
# 清理锁文件与 VNC 缓存
371+
rm -f $CHROOT/tmp/.X*-lock
372+
rm -rf $CHROOT/home/kali/.vnc/*
373+
374+
370375
function start-kex() {
371376
if [ ! -f ~/.vnc/passwd ]; then
372377
passwd-kex
@@ -399,6 +404,7 @@ function status-kex() {
399404
printf "\n\${sessions}\n"
400405
printf "\n你可以使用 KeX 客户端连接这些显示器。\n\n"
401406
else
407+
402408
if [ ! -z \$starting_kex ]; then
403409
printf '\n启动 KeX 服务器时出错。\n请尝试 "nethunter kex kill" 或重启 termux 会话并重试。\n\n'
404410
fi

0 commit comments

Comments
 (0)