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}}`