mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-08-09 11:41:50 +08:00
28 lines
863 B
Plaintext
28 lines
863 B
Plaintext
---
|
|
mirrorId: openwrt
|
|
---
|
|
|
|
OpenWRT(曾用名 LEDE)是一款广泛应用于路由器的嵌入式操作系统。本站提供 OpenWRT 的包管理器 `opkg` 的 release 部分镜像。
|
|
|
|
部分镜像站(例如 TUNA/BFSU)并不包含 snapshots 镜像,USTC 提供了对 snapshots 的反代,请在替换之前确认各镜像站的情况。
|
|
|
|
### 手工替换
|
|
|
|
登录到路由器,并编辑 `/etc/opkg/distfeeds.conf` 文件,将其中的 `http://downloads.openwrt.org` 替换为
|
|
|
|
```plaintext
|
|
https://mirrors.jcut.edu.cn/openwrt
|
|
```
|
|
|
|
即可。
|
|
|
|
### 自动替换
|
|
|
|
执行如下命令自动替换
|
|
|
|
```shell
|
|
sed -i 's_https\?://downloads.openwrt.org_https://mirrors.jcut.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
|
|
```
|
|
|
|
|
|
注:使用 HTTPS 可以有效避免国内运营商的缓存劫持,但需要另行安装 `libustream-openssl ca-bundle ca-certificates` 。 |