fffonion/Xunlei-Fastdick

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

Open

#85 ouverte le 25 déc. 2016

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Python (188 forks)batch import
help wanted

Métriques du dépôt

Stars
 (818 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur