[luci] Running kernel modules in LuCI

Станислав Федоров fedorovstanislav at mail.ru
Do Nov 13 16:28:46 CET 2008


Oh, any examples will be great. The problem is still the same: applying specific configuration changes by running linux kernel module with parameters depending from entered configuration on LuCI page:

insmod applying.ko param1=entered_param1 param3=entered_param2

And target must remember this configuration parameters like all others.

:-(((( LuCI gurus, any help will be appreciated.

-----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

> [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
> 
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
>