X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=docs%2Fnetwork-scripts.tex;h=4903358c25ce706be0032919bd99824b4a4a8639;hp=79a88534178fe20f3bad789019f141d197d9d893;hb=aa09481242cef9fc26b28991f9602b5222755686;hpb=1c602b8cc8dd6b495496ed65ffd5090d63d5718f diff --git a/docs/network-scripts.tex b/docs/network-scripts.tex index 79a8853417..4903358c25 100644 --- a/docs/network-scripts.tex +++ b/docs/network-scripts.tex @@ -22,13 +22,13 @@ after \texttt{scan\_interfaces} might not return the same result as running it b After running \texttt{scan\_interfaces}, the following functions are available: \begin{itemize} - \item{\texttt{find\_config \textit{interface}}} \\ - looks for a network configuration that includes - the specified network interface. + \item{\texttt{find\_config \textit{interface}}} \\ + looks for a network configuration that includes + the specified network interface. - \item{\texttt{setup\_interface \textit{interface [config] [protocol]}}} \\ - will set up the specified interface, optionally overriding the network configuration - name or the protocol that it uses. + \item{\texttt{setup\_interface \textit{interface [config] [protocol]}}} \\ + will set up the specified interface, optionally overriding the network configuration + name or the protocol that it uses. \end{itemize} \subsubsection{Writing protocol handlers} @@ -38,14 +38,14 @@ You can add custom protocol handlers by adding shell scripts to \begin{Verbatim} scan_() { - local config="$1" - # change the interface names if necessary + local config="$1" + # change the interface names if necessary } setup_interface_() { - local interface="\$1" - local config="\$2" - # set up the interface + local interface="$1" + local config="$2" + # set up the interface } \end{Verbatim}