ShellCrash icon indicating copy to clipboard operation
ShellCrash copied to clipboard

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

Open shinesky opened this issue 1 year ago • 9 comments

Verify steps

  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
  • [X] 我已经仔细看过 常见问题 并无法自行解决问题

Description

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

shinesky avatar Mar 07 '24 06:03 shinesky

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

juewuy avatar Mar 07 '24 07:03 juewuy

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

这个要怎么操作

shinesky avatar Mar 07 '24 07:03 shinesky

@shinesky 换一个工具

juewuy avatar Mar 07 '24 07:03 juewuy

@shinesky 换一个工具

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

shinesky avatar Mar 07 '24 07:03 shinesky

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

juewuy avatar Mar 10 '24 01:03 juewuy

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

这个命令依然无效 图3

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

shinesky avatar Mar 10 '24 08:03 shinesky

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

juewuy avatar Mar 10 '24 13:03 juewuy

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

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

shinesky avatar Mar 12 '24 09:03 shinesky

@shinesky 看情况吧

juewuy avatar Mar 12 '24 09:03 juewuy