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

建议彻底脱离python 纯使用shell、C语言实现 #85

Open
cokebar opened this issue Dec 25, 2016 · 2 comments
Open

建议彻底脱离python 纯使用shell、C语言实现 #85

cokebar opened this issue Dec 25, 2016 · 2 comments

Comments

@cokebar
Copy link

cokebar commented Dec 25, 2016

python对于路由器来说还是太不方便了 体积是硬伤
而目前这种通过python脚本获取uid、pass等所需参数,再生成shell文件和ipk的作法也非常的别扭,这样无法分发通用的ipk包。
建议使用c/shell语言实现python里面的这一部分功能,整合进软件包,使用uci的配置文件配置用户名密码
另外,建议增加一个hotplug脚本,掉线停,上线运行,比如:

#!/bin/sh
case "$ACTION" in
	ifup)
		/etc/init.d/swjsq start
		;;
	ifdown)
		/etc/init.d/swjsq stop
		;;
esac
@fffonion
Copy link
Owner

另见 #65

@bugparty
Copy link

主要是没精力。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants