mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
uci: add page (#15847)
This commit is contained in:
parent
ab52b3c41c
commit
58a8989639
1 changed files with 32 additions and 0 deletions
32
pages/linux/uci.md
Normal file
32
pages/linux/uci.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# uci
|
||||
|
||||
> Manage OpenWrt configuration files.
|
||||
> More information: <https://openwrt.org/docs/techref/uci>.
|
||||
|
||||
- Fetch a value:
|
||||
|
||||
`uci get {{network.lan.ipaddr}}`
|
||||
|
||||
- List all options and their values:
|
||||
|
||||
`uci show {{network}}`
|
||||
|
||||
- Set a value:
|
||||
|
||||
`uci set {{config}}.{{section}}.{{option}}={{value}}`
|
||||
|
||||
- Add a new section:
|
||||
|
||||
`uci add {{config}} {{section}}`
|
||||
|
||||
- Delete a section or value:
|
||||
|
||||
`uci delete {{config}}.{{section}}.{{option}}`
|
||||
|
||||
- Commit changes:
|
||||
|
||||
`uci commit {{config}}`
|
||||
|
||||
- Discard uncommitted changes:
|
||||
|
||||
`uci revert {{config}}`
|
Loading…
Add table
Reference in a new issue