Any uci function like uci_load() but load config file not under /etc/config? Can we specify directory not in /etc/config?
Asked
Active
Viewed 184 times
1 Answers
0
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

adamkonrad
- 6,794
- 1
- 34
- 41
-
1Thanks for help! It seems I can use uci_set_confdir() to change it. – ios Sep 07 '22 at 06:53