[openwrt]OpenWRT換成清華源
來源:https://mirror.tuna.tsinghua.edu.cn/help/openwrt/
手工替換
登錄到路由器,并編輯 /etc/opkg/distfeeds.conf 文件,將其中的 http://downloads.openwrt.org 替換為
https://mirrors.tuna.tsinghua.edu.cn/openwrt
即可。
自動替換
執行如下命令自動替換
sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
注:使用 HTTPS 可以有效避免國內運營商的緩存劫持,但需要另行安裝 libustream-openssl ca-bundle ca-certificates 。
opkg install
libustream-openssl ca-bundle ca-certificates

浙公網安備 33010602011771號