小米路由R1D固件升级后导致Misstar tools插件页面显示错误解决方法

R1D莫名其妙的自己升级到最新的开发版了,进入路由器里面的misstar tools工具箱显示下面的提示

看到这个不要着急,不是插件挂了,而是升级后导致管理界面显示异常,其实插件还在运行,广告拦截也在执行。只是不显示界面而已。非常感谢@rabbitlhf提供的解决方法。

具体方法如下:

1、ssh方root用户登录路由器后台; 

         2、执行命令: vi /usr/lib/lua/luci/controller/web/index2.lua  

         3、加入如下内容: 

module("luci.controller.web.index2", package.seeall)  

function index()            

local page   = node("web","misstar")                

page.target  = firstchild()               

page.title   = ("")                

page.order   = 100                

page.sysauth = "admin"                

page.sysauth_authenticator = "jsonauth"               

page.index = true                

entry({"web", "misstar", "index"}, template("web/setting/misstar/index"), _("Tools"), 81)                

entry({"web", "misstar", "add"}, template("web/setting/misstar/add"), _("Tools"), 82)                

entry({"web", "misstar"}, alias("web","misstar","index"), _("Tools"), 80)                

entry({"web", "misstar", "ss"}, template("web/setting/applications/ss/html/ss"), _("Tools"), 85)                

entry({"web", "misstar","frp"}, template("web/setting/applications/frp/html/frp"), _("Tools"), 85)                

entry({"web", "misstar","aliddns"}, template("web/setting/applications/aliddns/html/aliddns"), _("Tools"), 85)        

entry({"web", "misstar","adm"}, template("web/setting/applications/adm/html/adm"), _("Tools"), 85)          

entry({"web", "misstar","koolproxy"}, template("web/setting/applications/koolproxy/html/koolproxy"), _("Tools"), 85)      entry({"web", "misstar","rm"}, template("web/setting/applications/rm/html/rm"), _("Tools"), 85)      

entry({"web", "misstar","aria2"}, template("web/setting/applications/aria2/html/aria2"), _("Tools"), 85)       

entry({"web", "misstar","webshell"}, template("web/setting/applications/webshell/html/webshell"), _("Tools"), 85)      

entry({"web", "misstar","pptpd"}, template("web/setting/applications/pptpd/html/pptpd"), _("Tools"), 85)        

entry({"web", "misstar","ftp"}, template("web/setting/applications/ftp/html/ftp"), _("Tools"), 85)      

entry({"web", "misstar","kms"}, template("web/setting/applications/kms/html/kms"), _("Tools"), 85)   

end   

4、执行清理缓存命令: rm -rf /tmp/luci-indexcache  

5、刷新前台页面即可

注意:此方法在路由器重启后失效,需要重新执行一次

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值