Files
jcutmirror/docs/zh/openwrt.mdx
2024-02-16 13:11:30 +08:00

28 lines
863 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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` 。