From 58a8989639af3dddc1ff1b8a8f6ac7d15a63c611 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 4 Mar 2025 16:43:58 +0200 Subject: [PATCH] uci: add page (#15847) --- pages/linux/uci.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/uci.md diff --git a/pages/linux/uci.md b/pages/linux/uci.md new file mode 100644 index 0000000000..19db38e732 --- /dev/null +++ b/pages/linux/uci.md @@ -0,0 +1,32 @@ +# uci + +> Manage OpenWrt configuration files. +> More information: . + +- 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}}`