Hi,
section types with dashes also produce problems.
Reading might work fine but setting, modifying and restore/import do not.
#> uci set test.test-1='test-1'
uci: Invalid argument
#> uci set test.test_1='test-1'
#> uci set test.test-1.x='15'
uci: Invalid argument
inside config you will find:
config test-1 'test_1'
Christian
Am 18.12.2014 um 10:51 schrieb Jo-Philipp Wich:
> Hi.
>
>> [...] insists, "It is important to know that UCI identifiers and
>> config file names may contain only the characters a-z, 0-9 and _.
>> E.g. no hyphens (-) are allowed."
>>
>> But the file /etc/config/wireless uses a type of "wifi-iface."
>
> The word "wifi-iface" is a section type in this context.
> "Identifiers" refer to option names and section names.
>
> config [type] [name]
> option [name] [value]
>
> The [name] fields are restricted to [A-Za-z0-9_] mostly for
> historical reason because they're mapped to shell variable names which
> may not contain dashes.
>
> ~ Jow
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users