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

Fix deamon reboot port conflict #15

Merged
merged 3 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ GitHub [Releases](https://github.com/gngpp/nas-xunlei/releases) 中有预编译
```shell
wget https://github.com/gngpp/nas-xunlei/releases/download/v3.5.2/xunlei_3.5.2-1_aarch64_generic.ipk
wget https://github.com/gngpp/nas-xunlei/releases/download/v3.5.2/luci-app-xunlei_1.0.1_all.ipk
wget https://github.com/gngpp/nas-xunlei/releases/download/v3.5.2/luci-i18n-xunlei-zh-cn_git-23.121.09102-29a9551_all.ipk
wget https://github.com/gngpp/nas-xunlei/releases/download/v3.5.2/luci-i18n-xunlei-zh-cn_1.0.1-1_all.ipk

opkg install xunlei_3.5.2-1_aarch64_generic.ipk
opkg install luci-app-xunlei_1.0.1_all.ipk
opkg install luci-i18n-xunlei-zh-cn_git-23.121.09102-29a9551_all.ipk
opkg install luci-i18n-xunlei-zh-cn_1.0.1-1_all.ipk
```

### 自行编译
Expand All @@ -78,3 +78,11 @@ bash +x ./unpack.sh && cargo build --release --features embed && mv target/relea
# 若系统不支持systemctl,则手动启动daemon
./xunlei launch
```

### OpenWrt编译

```shell
svn co https://github.com/gngpp/nas-xunlei/trunk/openwrt package/xunlei
make menuconfig # choose LUCI->Applications->Luci-app-xunlei
make V=s
```
2 changes: 1 addition & 1 deletion openwrt/xunlei/files/xunlei.init
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ service_triggers() {

reload_service() {
stop
sleep 3
sleep 5
start
}