I need to add a button to a Luci page, similar to the toggle Wireless on/off button.
I need to add to the system.lua page however.
In wifi.lua is this:
if m:formvalue("cbid.wireless.%s.__toggle" % wdev:name()) then
The question I have is in system.lua, the result on the html page is:
cbid.system.cfg02e48a.__togglegps
My question is where does the "cfg02e48a" value come from so I can reference it correctly in system.lua when checking if the button was pressed?
I assume it has something to do with the fact that the UCI config file "system", and the config system section has no "name", but not sure where the "name" is being created and/or how to reference it.
Thanks!
(Last edited by JohnV on 13 Jan 2015, 21:24)