mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 08:59:26 +08:00
update 2024-05-08 16:19:13
This commit is contained in:
parent
e563f237e2
commit
ee4a6c7375
@ -105,8 +105,8 @@ function show_menu()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function hide_menu()
|
function hide_menu()
|
||||||
ucic:set(appname, "@global[0]", "hide_from_luci","1")
|
uci:set(appname, "@global[0]", "hide_from_luci","1")
|
||||||
ucic:commit(appname)
|
uci:commit(appname)
|
||||||
luci.sys.call("rm -rf /tmp/luci-*")
|
luci.sys.call("rm -rf /tmp/luci-*")
|
||||||
luci.sys.call("/etc/init.d/rpcd restart >/dev/null")
|
luci.sys.call("/etc/init.d/rpcd restart >/dev/null")
|
||||||
luci.http.redirect(luci.dispatcher.build_url("admin", "status", "overview"))
|
luci.http.redirect(luci.dispatcher.build_url("admin", "status", "overview"))
|
||||||
|
Loading…
Reference in New Issue
Block a user