RUT850 SMS Utilities: Difference between revisions
Appearance
| Line 632: | Line 632: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ style="text-align: left;" | UCI API syntax | |+ style="text-align: left;" | UCI API syntax | ||
! style="width: 250px; background: | ! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | SYNTAX | ||
! style="width: 500px; background: | ! style="width: 500px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION | ||
! style="width: 950px; background: | ! style="width: 950px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DEFAULT MESSAGE EXAMPLE | ||
|- | |- | ||
! style="text-align: left; vertical-align: top;" | uci get config.section.option" | ! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci get config.section.option" | ||
| style="vertical-align: top;" | Returns config option value | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns config option value | ||
| style="vertical-align: top;" | '''uci get network.wan.ipaddr''' - returns the router's WAN IP address | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''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="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci set config.section.option="value" | ||
| style="vertical-align: top;" | Sets config option | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Sets config option | ||
| style="vertical-align: top;" | '''uci set wireless.wifi-iface.key="12345678"''' - sets WiFi interface's password to 12345678 | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''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="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci show config | ||
| style="vertical-align: top;" | Returns the contents of a config file | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns the contents of a config file | ||
| style="vertical-align: top;" | '''uci show openvpn''' - returns the contents of the openvpn config file | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci show openvpn''' - returns the contents of the openvpn config file | ||
|- | |- | ||
! style="text-align: left; vertical-align: top;" | uci show config.section | ! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci show config.section | ||
| style="vertical-align: top;" | Returns the exact part of a config file (either section or the exact option value) | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns the exact part of a config file (either section or the exact option value) | ||
| style="vertical-align: top;" | '''uci show network.ppp''' - returns the contents of the ppp interface section from the network config file | | style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci show network.ppp''' - returns the contents of the ppp interface section from the network config file | ||
|- | |- | ||
|} | |} | ||