[luci] Running kernel modules in LuCI

Jo-Philipp Wich xm at subsignal.org
Mi Sep 3 12:30:08 CEST 2008


[Sent last response as private Mail, sorry]

Hi Stanislav,

for a reference how to build several input fields, have a look at:
http://luci.freifunk-halle.net/Documentation/CBI
https://dev.leipzig.freifunk.net/trac/browser/ff-luci/trunk/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
... and the CBI models in other packages (applications/*/luasrc/model/cbi/)

The insmod / rmmod can be implemented with the uci_oncommit actions.
Look in libs/web/root/etc/config/luci . You should write a shell script which does the
insmod/rmmod depending on the configuration values. Register this script in the luci uci
config as uci_oncommit action assigned to your uci config file.

For an example how to register your oncommit command when installing the package, see:
https://dev.leipzig.freifunk.net/trac/browser/ff-luci/trunk/applications/luci-uvc_streamer/ipkg/postinst
https://dev.leipzig.freifunk.net/trac/browser/ff-luci/trunk/applications/luci-uvc_streamer/root/etc/uci-defaults/luci-uvc_streamer


Greetings,
JoW



More information about the luci mailing list