Skip to content

Commit

Permalink
v1.0.3.5
Browse files Browse the repository at this point in the history
1. 登录快鸟帐号时检查wget退出值,避免wget返回错误数据;
2. MD5和SHA1都使用openssl计算,不再依赖md5sum;
3. 改变防止重复启动机制,更好地适应hotplug;
4. 修复虚拟接口导致代码出错,感谢 small_5 协助分析;
5. 针对部分地区不支持下行提速作相应调整。
  • Loading branch information
sensec committed Feb 13, 2018
1 parent d7868d9 commit c19b5d8
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 118 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-xlnetacc
PKG_VERSION:=1.0.3
PKG_RELEASE:=4
PKG_RELEASE:=5

PKG_LICENSE:=GPLv2
PKG_MAINTAINER:=Sense <sensec@gmail.com>
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# luci-app-xlnetacc
适用于 OpenWRT/LEDE 的迅雷快鸟客户端
适用于 OpenWRT/LEDE 纯Shell实现的迅雷快鸟客户端

依赖: wget openssl-util


for protocolVersion 200 / 适用迅雷更新后的新协议200。经连续几天测试后已确认能稳定运行,合并到主分支。
适用快鸟更新后的新协议200。经连续几天测试后已确认能稳定运行,合并到主分支。

详情见恩山论坛介绍帖 [依然是改良作品,这次的目标是 -- 迅雷快鸟](http://www.right.com.cn/forum/thread-267641-1-1.html)
10 changes: 8 additions & 2 deletions files/root/etc/init.d/xlnetacc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ SERVICE_DAEMONIZE=1
NAME=xlnetacc

start() {
local retry=1
while pidof "${NAME}.sh" >/dev/null 2>&1; do
[ $retry -ge 10 ] && return 1 || let retry++
sleep 1
done

config_load "$NAME"
config_get_bool enabled "general" "enabled" 0
config_get_bool down_acc "general" "down_acc" 0
config_get_bool up_acc "general" "up_acc" 0
config_get network "general" "network"
config_get username "general" "account"
config_get password "general" "password"
( [ $enabled -eq 0 ] || [ $down_acc -eq 0 -a $up_acc -eq 0 ] || [ -z "$username" -o -z "$password" -o -z "$network" ] ) && return
( [ $enabled -eq 0 ] || [ $down_acc -eq 0 -a $up_acc -eq 0 ] || [ -z "$username" -o -z "$password" -o -z "$network" ] ) && return 2

logger -p "daemon.notice" -t "$NAME" "XLNetAcc is starting ..."
service_start /usr/bin/${NAME}.sh --start
Expand All @@ -37,6 +43,6 @@ stop() {
}

restart() {
stop && sleep 3
stop && sleep 1
start
}
Loading

0 comments on commit c19b5d8

Please sign in to comment.