思绪的空中生活

小米路由器r2d MT工具箱打不开的解决办法
r2d的当前版本2.25.201,发现mt工具箱打开失效了,显示:No page is registered at...
扫描右侧二维码阅读全文
16
2018/08

小米路由器r2d MT工具箱打不开的解决办法

r2d的当前版本2.25.201,发现mt工具箱打开失效了,显示:

No page is registered at '/web/misstar/index' .

If this url belongs to an extension, make sure it is properly installed.

If the extension was recently installed, try removing the /tmp/luci-indexcache file.

查找有现成的方法,就搬过来了
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

参考:http://www.cmliu.net/?id=78

相关文章:

  • 中兴f460开启telnet
  • 宝塔面板安装frp
  • pve调整磁盘大小
  • N1将armbian刷入emmc
  • anyhk nat 食用指南
  • Last modification:August 16th, 2018 at 06:53 pm
    If you think my article is useful to you, please feel free to appreciate

    9 comments

    1. askwangkai

      卸载不掉,怎么安装3.0啊。

      1. 思绪的空中生活
        @askwangkai

        你什么型号?能刷老毛子就刷老毛子吧,不能就用mixbox吧

    2. 1

      谢谢楼主,好了!!

      1. 思绪的空中生活
        @1

        你会发现重启又不行了

        1. 1
          @思绪的空中生活

          对啊,所以我又来了,怎么解决???

          1. 思绪的空中生活
            @1

            降级固件不自动升级或者安装mt工具箱3.0

    3. 叽咕

      你好~我用XSHELL一粘贴就会发出卡住的声音,然后也不知道怎么保存,能教教我吗~

      1. 思绪的空中生活
        @叽咕

        执行vi /usr/lib/lua/luci/controller/web/index2.lua后,
        按i进入编辑模式,按shift+insert粘贴,
        粘贴成功后按esc退出编辑模式,
        输入:wq保存并退出
        这个方法不好用,还是会恢复原样,每次都要重新来一次,还是降级吧

    4. 大学生暑假兼职

      小米路由器还没有用过呢

    Leave a Comment