1
0
Fork 0
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:
Managor 2025-03-04 16:43:58 +02:00 committed by GitHub
parent ab52b3c41c
commit 58a8989639
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

32
pages/linux/uci.md Normal file
View 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}}`