小米路由器3,后台Misstar tools显示错误


小米路由器开发板升级到后面的版本,Misstar tools就会凉,提示No page is registered at '/web/misstar/index'.

小米社区有个老哥给了一个解决办法,他给出的解释是:

是 /web/misstar/index 没有在luci中注册 ,翻代码后发现,index.lua 。。。 等等系统自带的lua文件都加密了 。。。

所以,安装脚本不能往里面写入文件配置。

 

临时解决办法:

在 /usr/lib/lua/luci/controller/web 目录下新建一个文件 index2.lua

内容如下:

 

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"), 86)

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

end

 

然后执行一下这个命令:

rm -rf /tmp/luci-indexcache /tmp/luci-modulecache/*

 

 

 

参考链接:http://bbs.xiaomi.cn/t-14166902


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM