@jow is it possibile to add entry to getFeature ubus call ? If this is not possible then the only way is fallback to a lua page to get special value?
Think this should be added to make use of the new api easier...
To add custom methods to ubus we need to...
Add a file to /usr/libexec/rpcd (check luci files to understand the structure)
Adds the new method to /usr/share/rpcd/acl.d to give permission to actually use them
this way this new method can be easily called with promise call and handled all in js code
(this doesn't answer to my question , but i think the right way is to create dedicated method for his own module)
Also take notice that a rpcd restart is necessary to load the new methods to ubus
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.