[luci] Running kernel modules in LuCI

Станислав Федоров fedorovstanislav at mail.ru
Fr Sep 26 12:34:34 CEST 2008


Thanks for reply.

I handle several input fields. It's ok.

But I didn't understand about uci_oncommit actions and how implement script depending on the configuration values?

Please help. Examples will be great.

-----Original Message-----
From: Jo-Philipp Wich <xm at subsignal.org>
To: LuCI <luci at lists.subsignal.org>
Date: Wed, 03 Sep 2008 12:30:08 +0200
Subject: Re: [luci] Running kernel modules in LuCI

> 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