Line 864: |
Line 864: |
| ! style="text-align: left; vertical-align: top;" | uci get config.section.option" | | ! style="text-align: left; vertical-align: top;" | uci get config.section.option" |
| | style="vertical-align: top;" | Returns config option value | | | style="vertical-align: top;" | Returns config option value |
− | | style="vertical-align: top;" | example | + | | style="vertical-align: top;" | '''uci get network.wan.ipaddr''' - returns the router's WAN IP address |
| |- | | |- |
− | ! style="text-align: left; vertical-align: top;" | uci set config.section.option=value" | + | ! style="text-align: left; vertical-align: top;" | uci set config.section.option="value" |
| | style="vertical-align: top;" | Sets config option | | | style="vertical-align: top;" | Sets config option |
− | | style="vertical-align: top;" | example | + | | style="vertical-align: top;" | '''uci set wireless.wifi-iface.key="12345678"''' - sets WiFi interface's password to 12345678 |
| |- | | |- |
| ! style="text-align: left; vertical-align: top;" | uci show config | | ! style="text-align: left; vertical-align: top;" | uci show config |
− | | style="vertical-align: top;" | Shows the config file | + | | style="vertical-align: top;" | Shows the contents of a config file |
− | | style="vertical-align: top;" | example | + | | style="vertical-align: top;" | '''uci show openvpn''' - returns the contents of the openvpn config file |
| |- | | |- |
| ! style="text-align: left; vertical-align: top;" | uci show config.section | | ! style="text-align: left; vertical-align: top;" | uci show config.section |
− | | style="vertical-align: top;" | Shows the exact part of config file (e.g.. uci show network.ppp.apn" ) | + | | style="vertical-align: top;" | Shows the exact part of config file |
− | | style="vertical-align: top;" | example | + | | style="vertical-align: top;" | '''uci show network.ppp''' - returns the contents of the ppp interface section from the network config file |
| |- | | |- |
| |} | | |} |