#20895: uci import / unawaited behavior
------------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: closed
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: not_a_bug | Keywords:
------------------------+------------------------
Comment (by bittorf@…):
thank you. it was our intention to do this without commit.
for others: our workaround is now:
{{{
uci show wireless | while read LINE; do echo "uci set $LINE"; done
>/tmp/backup
uci set ... (make a lot of changes)
# (reverse) delete everything:
uci show wireless |
grep -n '' |
sort -rn |
cut -d':' -f2 |
cut -d'=' -f1 |
while read line; do uci delete $line; done
. /tmp/backup
# now we are back at initial state
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20895#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets