User manual

8: Command Line Interface
_______________________________________________________________________________________________________
will be combined into a single list of values with the same order as in the
configuration file.
The indentation of the option and list statements is a convention to improve the
readability of the configuration file but it is not syntactically required.
Usually you do not need to enclose identifiers or values in quotes. Quotes are
only required if the enclosed value contains spaces or tabs. Also it's legal to use
double- instead of single-quotes when typing configuration options.
All of the examples below are valid syntax.
option example value
option 'example' value
option example "value"
option "example" 'value'
option 'example' "value"
In contrast, the following examples are not valid syntax.
option 'example" "value'
(quotes are unbalanced)
option example some value with space
(note the missing quotes around the value).
It is important to know that identifiers and config file names may only contain
the characters a-z, 0-9 and _. Option values may contain any character, as long
they are properly quoted.
8.5 Examples
No need to reboot.
After changing the port, uhttpd listens on from 80 to 8080 in the file
/etc/config/uhttpd, save it. Then enter:
root@VA_router:~# uci commit uhttpd
then enter:
root@VA_router:~# /etc/init.d/uhttpd restart
Done. No reboot needed.
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 38 of 255