mirror of
http://junepve.top:3000/chicrobot/termux.git
synced 2026-10-30 00:41:29 +08:00
termux判断是否ssh连接,是则不自动启动安装的linux
This commit is contained in:
1 parent
cdd3fc4ce7
commit
f77e1845a8
1 file changed
+8
-3
@@ -9,10 +9,15 @@ echo -e "\e[0m"
|
||||
3. ../home/.bashrc
|
||||
```
|
||||
echo -e "\e[1;35m"
|
||||
echo "开机脚本:../home/.bashrc"
|
||||
echo "用户开机脚本:../home/.bashrc"
|
||||
echo -e "\e[0m"
|
||||
echo -e "启动tmoe安装的linux系统中..."
|
||||
debian
|
||||
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ; then
|
||||
echo "当前是SSH连接"
|
||||
else
|
||||
echo -e "启动tmoe安装的linux系统中...\n"
|
||||
debian
|
||||
fi
|
||||
```
|
||||
# 2、 ubuntu开机脚本
|
||||
1. .zprofile,只在登录shell启动时执行一次
|
||||
|
||||
Reference in new issue
Block a user