fffonion/Xunlei-Fastdick

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

Open

#85 opened on Dec 25, 2016

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (818 stars) (188 forks)batch import
help wanted

Description

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

Contributor guide