#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@…):

 thanks, this is much better:

 {{{
 #!/bin/sh

 backup()
 {
   cp /tmp/.uci/wireless /tmp/wireless_mychanges
   uci export wireless /tmp/wireless_export
 }

 restore()
 {
   uci revert wireless
   uci import </tmp/wireless_export
   cp /tmp/wireless_mychanges /tmp/.uci/wireless
 }

--
Ticket URL: <https://dev.openwrt.org/ticket/20895#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to