Differences

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

doc:techref:uci [2013/07/03 11:05]
lorema
doc:techref:uci [2013/09/04 15:58] (current)
peteruithoven
Line 79: 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

Back to top

doc/techref/uci.1372842300.txt.bz2 · Last modified: 2013/07/03 11:05 by lorema