UCI argument error

Recently, we are porting our script to the latest openwrt codebase. And found some uci commands can not be executed anymore. Like:

root@OpenWrt:/# uci show -X
uci: Entry not found

which would be availiable after changing like "uci -X show".

I just wonder if there is problem in getopt provided by muslC or in uci? Any suggestion and solution would be appreciate.

Thanks!

That's common practice for subcommand syntax.
It makes possible to add subcommand options:

cmd [<cmd_opts>] <subcmd> [<subcmd_opts>] ...

Documented syntax is:

# uci
Usage: uci [<options>] <command> [<arguments>]

What you are trying to use is outdated undocumented syntax.
Solution is batch replacement.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.