[OpenWrt-Devel] problem with uci delete <config>
nam228
nampt282 at gmail.com
Tue Jul 26 21:03:38 EDT 2016
you can not delete an entire config at once by using uci
You can only delete one by one.For example:
uci delete network.lan.ifname
On 24/07/2016 16:56, Stephan Hennig wrote:
> [moving to devel, since there has been no response on the users list]
>
> Hi,
>
> uci help has this on the delete command
>
>> root at 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 at uap:~# uci delete network
> uci: Invalid argument
> root at uap:~# uci changes
> root at 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
> openwrt-users at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list