[luci] luci Lua modules

Stephan Hennig sh-list at posteo.net
Thu Jan 14 22:36:45 CET 2016


Am 14.01.2016 um 21:18 schrieb Christian Schoenebeck:
> From my knowledge, during first boot the file /etc/config/wireless is written.
> If you remove it, it can be recreated with a console command (don't know at the moment but it's somewhere in OpenWrt-Wiki)
> If you remove one "wifi-device" from config file Luci will no longer recognize it.
> Why not using uci and read /etc/config/wireless.

Thanks for pointing me to the uci module!  (Which triggers lots of other
questions :)

Here's one: When reading configuration off /etc/config/wireless, how do
you translate between interface names and corresponding iw device names,
e.g., for reading the list of associated stations using the iwinfo
module?  That is, how to translate 'radio0' to 'wlan0' (and back again)?

Best regards,
Stephan Hennig



More information about the luci mailing list