openwrtuci

Any function like uci_load() but load config file not under /etc/config?


Any uci function like uci_load() but load config file not under /etc/config? Can we specify directory not in /etc/config?


Solution

  • If you're doing this in C then it looks like you could create a new uci_context struct with the path specified in confdir.

    Based on looking at: https://lxr.openwrt.org/source/uci/uci.h#L397