#19096: LuCI does not show buttons.lua, but code is there
------------------------+----------------------------------
Reporter: nilfred@… | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: luci | Version: Trunk
Resolution: | Keywords: buttons GPIO keys
------------------------+----------------------------------
Comment (by nilfred@…):
Oops! Part of the workaround slipped in the bug description. Anyway, this
is the full workaround in a running system:
{{{
echo "return m" >> /usr/lib/lua/luci/model/cbi/admin_system/buttons.lua
sed -i -e '/Flash F/ i\
<damm-tab>entry({"admin", "system", "buttons"},
cbi("admin_system/buttons"), _("Buttons"), 65)\
' /usr/lib/lua/luci/controller/admin/system.lua
sed -i -e "s/<damm-tab>/\t/" /usr/lib/lua/luci/controller/admin/system.lua
}}}
That's all, now you should have http://192.168.1.1/cgi-
bin/luci/admin/system/buttons under System menu.
--
Ticket URL: <https://dev.openwrt.org/ticket/19096#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets