Hi,

uci help has this on the delete command

> root@uap:~# uci
> Usage: uci [<options>] <command> [<arguments>]
> 
> Commands:
[...]
>         delete     <config>[.<section>[[.<option>][=<id>]]]

Which I interpret as: you can delete an entire config at once (and fill
it again with 'uci set' afterwards).  However, 'uci delete <config>'
returns an error:

  root@uap:~# uci delete network
  uci: Invalid argument
  root@uap:~# uci changes
  root@uap:~#

(And 'uci commit' doesn't seem to do anything.)

Am I missing something?

system:

  OpenWrt 15.05.1 CC
  Nanostation 5 loco

Background: Task is to deploy WDS bridge configuration on devices via
shell script.  Instead of managing separate (network and other)
configuration files for access points and stations that share many
identical lines and are therefore hard to maintain, the idea is to
deploy a parametrized shell script which builds configuration files on
the device in question.  Now, so that existing configuration doesn't get
into the way, the script should be able to remove, i.e., network
configuration, at once and rebuild it using 'uci set' commands afterwards.

Best regards,
Stephan Hennig
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to