X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=docs%2Fconfig.tex;h=17417c99a1c2574aeac1d57397ffeade81f7c04a;hb=a1f09a42a5238a562049716754842ecff6ab3751;hp=d13297c4f79d8b2929a899b62d5eea8725f5a2cd;hpb=d1d50072edabfcb188caad33f570b20e8837f4a4;p=openwrt-10.03%2F.git diff --git a/docs/config.tex b/docs/config.tex index d13297c4f..17417c99a 100644 --- a/docs/config.tex +++ b/docs/config.tex @@ -57,6 +57,19 @@ after \texttt{config\_load} is done. That allows you to process sections both before and after all options were processed. +Another way of iterating on config sections is using the \texttt{config\_foreach} command. + +Syntax: +\begin{Verbatim} +config_foreach [] [] +\end{Verbatim} + +This command will run the supplied function for every single config section in the currently +loaded config. The section name will be passed to the function as argument 1. +If the section type is added to the command line, the function will only be called for +sections of the given type. + + You can access already processed options with the \texttt{config\_get} command Syntax: @@ -80,3 +93,9 @@ Syntax: config_set