├── .gitignore ├── images ├── alipay.jpg ├── wechat.jpg └── paypal.svg ├── scripts ├── get-monitor.sh └── get-plugins.sh ├── files ├── control └── uuplugin.init └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | ipks/*.ipk 3 | 4 | .idea 5 | ipk-build 6 | pkg 7 | src 8 | -------------------------------------------------------------------------------- /images/alipay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ttc0419/uuplugin/HEAD/images/alipay.jpg -------------------------------------------------------------------------------- /images/wechat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ttc0419/uuplugin/HEAD/images/wechat.jpg -------------------------------------------------------------------------------- /scripts/get-monitor.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | curl -O $(curl -s -H 'Accept:text/plain' 'https://router.uu.163.com/api/script/monitor?type=openwrt' | awk -F ',' '{print $1}') 3 | -------------------------------------------------------------------------------- /files/control: -------------------------------------------------------------------------------- 1 | Package: uuplugin 2 | Version: 9.2.10-1 3 | Architecture: x86_64 4 | Maintainer: William Tang 5 | Depends: kmod-tun 6 | Source: https://uu.163.com/router/ 7 | Description: UU game booster OpenWrt plugin 8 | -------------------------------------------------------------------------------- /files/uuplugin.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | 3 | START=99 4 | USE_PROCD=1 5 | 6 | start_service() { 7 | rm -rf /tmp/uu && mkdir /tmp/uu && cd /tmp/uu 8 | procd_open_instance 9 | procd_set_param command /usr/sbin/uu/uuplugin /etc/uu.conf 10 | procd_close_instance 11 | } 12 | -------------------------------------------------------------------------------- /scripts/get-plugins.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir src 5 | 6 | for arch in arm aarch64 mipsel x86_64; do 7 | pushd /tmp 8 | curl -O $(curl -s -H "Accept:text/plain" "https://router.uu.163.com/api/plugin?type=openwrt-$arch" | awk -F ',' '{print $1}') 9 | tar -xf uu.tar.gz 10 | popd 11 | 12 | mkdir -p "src/$arch/" 13 | mv /tmp/{uu.conf,uuplugin} "src/$arch/" 14 | rm /tmp/uu.tar.gz 15 | done 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UU OpenWrt插件 2 | UU加速器OpenWrt插件ipk安装包 3 | 4 | ## 安装 5 | ```shell 6 | cd /tmp 7 | pkg_name=uuplugin_latest-1_$(grep '^DISTRIB_ARCH' /etc/openwrt_release | awk -F "'" '{print $2}').ipk 8 | wget "https://github.com/ttc0419/uuplugin/releases/download/latest/$pkg_name" && opkg install $pkg_name || echo "You router is not supported!" 9 | ``` 10 | 11 | ## 架构支持 12 | 目前网易官方支持aarch64, arm, mpisel和x86_64。前三种架构官方没有说明哪几种子架构支持。 13 | 如果你认为插件支持额外子架构或某些子架构其实不支持,请创建新的issue说明。 14 | 当前支持列表根据objdump所用的指令为依据。 15 | 16 | 以下几种情况不提供支持: 17 | 1. 最新发布版本无此架构 18 | 2. 架构所支持的路由器在中国使用率过少 19 | 3. 架构不在OpenWrt官方支持列表中 20 | 21 | ## 系统支持 22 | 加速器现阶段还是使用```iptables```配置防火墙规则,理论上只支持OpenWrt 21及之前的系统版本,22及之后的版本可以尝试安装```iptables-nft```来兼容。 23 | 24 | ## 捐助 25 | 开源不易,如果项目有帮到你,能投喂一下嘛 😉 26 | 27 | | [![PayPal](/images/paypal.svg)](https://www.paypal.me/ttc0419)
Click [here](https://www.paypal.me/ttc0419) to donate | ![Wechat Pay](/images/wechat.jpg)
Wechat Pay | ![Alipay](/images/alipay.jpg) Alipay | 28 | |--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|--------------------------------------| 29 | -------------------------------------------------------------------------------- /images/paypal.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml --------------------------------------------------------------------------------