User manual
7:File system
_______________________________________________________________________________________________________
option example “value”
option “example” 'value'
option 'example' “value”
In contrast, the following examples are not valid syntax:
option ‘example’ value Missing quotes around the value.
option 'example” “value' Quotes are unbalanced.
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.
7.1.3 Command line utility
For configuration, the system emulates a subset of the Unified Configuration
Interface (UCI). This section describes the usage guide for the UCI command
line.
When there are multiple rules next to each other, UCI uses array-like references
for them. If there are 8 NTP servers, UCI will let you reference their sections as
timeserver.@timeserver[0] for the first rule or timeserver.@timeserver[7] for
the last one.
root@VA_router:~# uci
Usage: uci [<options>] <command> [<arguments>]
Commands:
batch
list
export [<config>]
import [<config>]
changes [<config>]
commit [<config>]
add <config> <section-type>
add_list <config>.<section>.<option>=<string>
show [<config>[.<section>[.<option>]]]
get <config>.<section>[.<option>]
set <config>.<section>[.<option>]=<value>
delete <config>[.<section[.<option>]]
rename <config>.<section>[.<option>]=<name>
revert <config>[.<section>[.<option>]]
reorder <config>.<section>=<position>
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 24 of 255