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、刷新前台页面即可
注意:此方法在路由器重启后失效,需要重新执行一次