fffonion/Xunlei-Fastdick

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

Open

#85 aperta il 25 dic 2016

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Python (188 fork)batch import
help wanted

Metriche repository

Star
 (818 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor