juewuy / ShellCrash

Run sing-box/mihomo as client in shell
8.73k stars 1.46k forks source link

[Bug] 路由器重启,clash命令就失效了,无法呼出控制台,但是clash是正常运行状态 #581

Closed shinesky closed 6 months ago

shinesky commented 7 months ago

Verify steps

Description

路由器型号:中兴E8820S,mt7621,刷的padavan系统 问题:只要路由器重启,clash命令就失效了,无法呼出控制台,但是clash仍然是正常运行状态,包括ui界面都是可以访问的 clash安装是用的推荐的小闪存模式 图1 图2

juewuy commented 7 months ago

@shinesky ssh工具没加载环境变量

shinesky commented 7 months ago

@shinesky ssh工具没加载环境变量

这个要怎么操作

juewuy commented 7 months ago

@shinesky 换一个工具

shinesky commented 7 months ago

@shinesky 换一个工具

我换了别的ssh工具也不行,我的n1也安装了shellcrash,但没有这个问题

juewuy commented 7 months ago

那就是环境变量没写入,可以用sh /etc/storage/ShellCrash menu.sh 呼出菜单

shinesky commented 7 months ago

那就是环境变量没写入,可以用sh /etc/storage/ShellCrash menu.sh 呼出菜单

这个命令依然无效 图3

确实是是环境变量没写入,我之前也查过了,是padavan系统本身问题,只有 /etc/storage 文件夹是可读写,其他目录都是只读,系统没有给root权限,都是admin登录的 shellclash安装完毕后,查看etc/profile,里面是有配置环境变量的,但是这个profile是个软链接,实际指向etc_pro/profile,而本体profile并没有配置shellclash环境变量,,一旦重启,软链接里的环境变量也就失效了,感觉无解啊 图2

juewuy commented 7 months ago

加一下判断的事情,主要padavan版本太多文件不一样而已

shinesky commented 7 months ago

加一下判断的事情,主要padavan版本太多文件不一样而已

加什么判断?下个版本会更新吗

juewuy commented 7 months ago

@shinesky 看情况吧