termux判断是否ssh连接,是则不自动启动安装的linux

This commit is contained in:
chicrobot committed 2026-08-10 03:54:15 +08:00
1 parent cdd3fc4ce7
commit f77e1845a8
1 file changed
+7 -2
+7 -2
View File
@@ -9,10 +9,15 @@ echo -e "\e[0m"
3. ../home/.bashrc 3. ../home/.bashrc
``` ```
echo -e "\e[1;35m" echo -e "\e[1;35m"
echo "开机脚本:../home/.bashrc" echo "用户开机脚本:../home/.bashrc"
echo -e "\e[0m" echo -e "\e[0m"
echo -e "启动tmoe安装的linux系统中..."
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ; then
echo "当前是SSH连接"
else
echo -e "启动tmoe安装的linux系统中...\n"
debian debian
fi
``` ```
# 2、 ubuntu开机脚本 # 2、 ubuntu开机脚本
1. .zprofile,只在登录shell启动时执行一次 1. .zprofile,只在登录shell启动时执行一次