User Tools

Site Tools


doc:techref:uci

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:techref:uci [2013/03/13 11:36]
floh1111
doc:techref:uci [2013/09/04 15:58] (current)
peteruithoven
Line 6: Line 6:
 git clone git://​nbd.name/​uci.git git clone git://​nbd.name/​uci.git
 </​code>​ </​code>​
 +  * This is the Technical Reference. Please see **[[doc/​uci|UCI (Unified Configuration Interface) – Usage]]**
  
 ==== What is UCI? ==== ==== What is UCI? ====
Line 78: Line 79:
 If the callback function returns ''​false''​ [NB: __not__ ''​nil''​!],​ ''​foreach()''​ will terminate at that point without iterating over any remaining sections. If the callback function returns ''​false''​ [NB: __not__ ''​nil''​!],​ ''​foreach()''​ will terminate at that point without iterating over any remaining sections.
 ''​foreach()''​ returns ''​true''​ if at least one section exists and the callback function didn't raise an error for it; ''​false''​ otherwise. ''​foreach()''​ returns ''​true''​ if at least one section exists and the callback function didn't raise an error for it; ''​false''​ otherwise.
 +<code lua>​x:​reorder("​config",​ "​sectionname",​ position)</​code>​
 +Move a section to another position. Position starts at 0. 
 +This is for example handy to change the wireless config order (changing priority). ​
 <code lua>​x:​revert("​config"​)</​code>​ <code lua>​x:​revert("​config"​)</​code>​
 discards any changes made to the configuration,​ that have not yet been committed discards any changes made to the configuration,​ that have not yet been committed
doc/techref/uci.1363170960.txt.bz2 · Last modified: 2013/03/13 11:36 by floh1111