MI路由器openwrt安装openclash.txt

1.上传插件到路由器tmp
#scp luci-app-openclash_0.45.16-196_all.ipk root@192.168.30.1:/tmp

2.安装依赖相关

# opkg update

# opkg install luci

# opkg install luci-base

# opkg install iptables

# opkg install dnsmasq-full

# opkg install coreutils

# opkg install bash

# opkg install curl

# opkg install jsonfilter

# opkg install ca-certificates

# opkg install ipset

# opkg install ip-full

# opkg install iptables-mod-tproxy

# opkg install kmod-tun #TUN模式

# opkg install luci-compat

3.安装软件

# opkg install /tmp/luci-app-openclash_0.45.16-196_all.ipk

4.卸载
# opkg remove luci-app-openclash

5.查看路由器版本
# opkg info | grep Architecture | sort | uniq
Architecture: all
Architecture: mipsel_24kc
Description: ALSA (Advanced Linux Sound Architecture) utilities
Description: Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture
Description: OLA (Open Lighting Architecture) is a framework that allows applications to send and receive DMX512, using

6.中文版本 添加
# opkg install luci-i18n-base-zh-cn

7.如果提示。
* resolve_conffiles: Existing conffile /etc/config/dhcp is different from the conffile in the new package. The new conffile will be placed at /etc/config/dhcp-opkg.

# mv /etc/config/dhcp-opkg /etc/config/dhcp

8.重启路由器后。可以在服务菜单里配置

参考文章:
https://blog.frytea.com/archives/450/

小米路由器Pro 刷机 OpenWrt
https://lzxz1234.cn/archives/420

小米路由器3从openwrt刷回官方
https://www.right.com.cn/FORUM/forum.php?mod=viewthread&tid=5604670&page=1&simpletype=no

fw_setenv flag_last_success 0
fw_setenv flag_try_sys1_failed 0
fw_setenv flag_try_sys2_failed 0

插件官方: https://github.com/vernesong/OpenClash/releases

 

 

发表评论

后才能评论