gpt4 book ai didi

openwrt - uci - 如何恢复所有未暂存的更改

转载 作者:行者123 更新时间:2023-12-04 12:46:44 32 4
gpt4 key购买 nike

uci文档说:

All "uci set", "uci add", "uci rename" and "uci delete" commands are staged into a temporary location and written to flash at once with "uci commit".

如果我没看错,你首先运行一些类似上面提到的命令,然后将更改写入你运行 uci commit 的配置文件。例如,假设我做了以下更改...

root@OpenWrt:~# uci changes
network.vlan15.ifname='eth1.15'
network.vlan15.type='bridge'
network.vlan15.proto='static'
network.vlan15.netmask='255.255.255.0'
network.vlan15.ipaddr='192.168.10.0'

...但我不想继续提交它们。有没有一种简单的方法可以还原所有分阶段的更改并避免一一进行?

最佳答案

这应该可以通过以下命令实现:

root@firlefanz:~# rm -rf /tmp/.uci/

关于openwrt - uci - 如何恢复所有未暂存的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45147689/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com