aboutsummaryrefslogtreecommitdiffstats
path: root/docs/network-scripts.tex
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2006-11-06 23:37:55 +0000
committerTim Yardley <lst@openwrt.org>2006-11-06 23:37:55 +0000
commitc9c17aa8597efef54def37666242b46c1109bdb3 (patch)
tree16795db1eb0b5a75512b7d4560d30da29139f44c /docs/network-scripts.tex
parent2a8cb04370c07cefcc8d2fcff2cf248465c05bd8 (diff)
downloadmaster-187ad058-c9c17aa8597efef54def37666242b46c1109bdb3.tar.gz
master-187ad058-c9c17aa8597efef54def37666242b46c1109bdb3.tar.bz2
master-187ad058-c9c17aa8597efef54def37666242b46c1109bdb3.zip
some basic cleanup, stylistic change for config files, and slight fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'docs/network-scripts.tex')
-rw-r--r--docs/network-scripts.tex22
1 files changed, 11 insertions, 11 deletions
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_<protocolname>() {
- local config="$1"
- # change the interface names if necessary
+ local config="$1"
+ # change the interface names if necessary
}
setup_interface_<protocolname>() {
- local interface="\$1"
- local config="\$2"
- # set up the interface
+ local interface="$1"
+ local config="$2"
+ # set up the interface
}
\end{Verbatim}