X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=docs%2Fconfig.tex;h=17417c99a1c2574aeac1d57397ffeade81f7c04a;hp=f3802198edabcb5fb0723d216d96648760ac2716;hb=f5c53e76ad9d543aaf9005a7fdd88c522108527e;hpb=6c8d5185bfc08ef2e6df54ef29746e794486f5a3 diff --git a/docs/config.tex b/docs/config.tex index f3802198ed..17417c99a1 100644 --- a/docs/config.tex +++ b/docs/config.tex @@ -57,12 +57,28 @@ 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: \begin{Verbatim} -config_get