Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

路由器不能吗? #4

Closed
wuge0 opened this issue Dec 23, 2021 · 10 comments
Closed

路由器不能吗? #4

wuge0 opened this issue Dec 23, 2021 · 10 comments

Comments

@wuge0
Copy link

wuge0 commented Dec 23, 2021

登录ssh后
image

@mylovesaber
Copy link
Owner

mylovesaber commented Dec 23, 2021

路由暂时没实机测试,我是用的各种服务器测试的,你这个是 ash,你输入:which bash 看看有没有这个 shell?这个图看样子可能是系统没识别到 bash shell 所以返回调用 sh 来执行脚本,而 bash 和 sh 有些写法不太兼容导致,另外运行这个命令看看: which env

@mylovesaber
Copy link
Owner

mylovesaber commented Dec 24, 2021

我换了种命令的写法并做了部分调整,你再试试看?关键是看你这系统里面有没有 bash 命令,如果没有的话给个话,我加个功能上去,否则就直接能用了。。。

@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

2021-12-24 17-50-4
这是测试结果
路由器系统是 Padavan

1 similar comment
@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

2021-12-24 17-50-4
这是测试结果
路由器系统是 Padavan

@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

2021-12-24 17-54-2

@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

[MI-R3P /opt/home/admin]# which env
/usr/bin/env
[MI-R3P /opt/home/admin]# which bash
/bin/bash

@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

521xueweihan/GitHub520#57
这个反馈问题里的我也试了不管用

@wuge0
Copy link
Author

wuge0 commented Dec 24, 2021

可能要刷Openwrt系统才能

@mylovesaber
Copy link
Owner

路由系统可能和常见 linux 发行版的用法不太一样,我也没有实机测试,你要是不介意的话可以给个联系方式,我远控你路由看看?

@wuge0
Copy link
Author

wuge0 commented Dec 25, 2021

可以,微信 2511052

@wuge0 wuge0 closed this as completed Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants