From 10089ef1c3a2bd3ac0e8ae525e3b8f91b7a3229e Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 23 Sep 2023 15:30:16 +0200 Subject: [PATCH] feat: discard changes --- knowledge base/uci.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/knowledge base/uci.md b/knowledge base/uci.md index e66e30e..4750c08 100644 --- a/knowledge base/uci.md +++ b/knowledge base/uci.md @@ -15,17 +15,6 @@ Command line utility for OpenWrt's UCI system. uci show uci show 'dhcp' -# Show changes to the settings. -uci changes -uci changes 'dhcp' - -# Commit changes. -uci commit -uci commit 'dhcp' - -# Reload the configuration -reload_config - # Show what interface is the WAN. uci show network.wan.device | cut -d "'" -f 2 @@ -43,6 +32,20 @@ uci del_list network.br_lan.ports='lan4' uci add_list network.br_lan.ports='eth2' uci commit 'network' reload_config + +# Show pending changes to the settings. +uci changes +uci changes 'dhcp' + +# Commit pending changes. +uci commit +uci commit 'dhcp' + +# Discard pending changes. +uci revert 'dhcp.cfg19fe63' + +# Reload the configuration +reload_config ``` ## Further readings