some basic cleanup, stylistic change for config files, and slight fixes

SVN-Revision: 5455
This commit is contained in:
Tim Yardley 2006-11-06 23:37:55 +00:00
parent 62dc30f27a
commit 6c8d5185bf
6 changed files with 187 additions and 187 deletions

View file

@ -9,8 +9,8 @@ it was written under.
Syntax:
\begin{Verbatim}
config <type> [<name>] # Section
option <name> <value> # Option
config <type> ["<name>"] # Section
option <name> "<value>" # Option
\end{Verbatim}
Every parameter needs to be a single string and is formatted exactly

View file

@ -43,8 +43,8 @@ scan_<protocolname>() {
}
setup_interface_<protocolname>() {
local interface="\$1"
local config="\$2"
local interface="$1"
local config="$2"
# set up the interface
}
\end{Verbatim}

View file

@ -61,7 +61,7 @@ The switch configuration is set by adding a \texttt{'switch'} config section.
Example:
\begin{Verbatim}
config switch eth0
config switch "eth0"
option vlan0 "1 2 3 4 5*"
option vlan1 "0 5"
\end{Verbatim}

View file

@ -3,16 +3,16 @@ The WiFi settings are configured in the file \texttt{/etc/config/wireless}
it should detect your card and create a sample configuration that looks like this:
\begin{Verbatim}
config wifi-device wl0
option type broadcom
option channel 5
config wifi-device "wl0"
option type "broadcom"
option channel "5"
config wifi-iface
option device wl0
option mode ap
option ssid OpenWrt
option hidden 0
option encryption none
option device "wl0"
option mode "ap"
option ssid "OpenWrt"
option hidden "0"
option encryption "none"
\end{Verbatim}
There are two types of config sections in this file. The '\texttt{wifi-device}' refers to