9 int avl_strcmp(const void *k1, const void *k2, void *ptr)
11 return strcmp(k1, k2);
14 static int usage(const char *progname)
16 fprintf(stderr, "Usage: %s [options]\n"
18 " -s <path>: Path to the ubus socket\n"
24 int main(int argc, char **argv)
26 const char *socket = NULL;
29 while ((ch = getopt(argc, argv, "s:")) != -1) {
35 return usage(argv[0]);
39 if (netifd_ubus_init(NULL) < 0) {
40 fprintf(stderr, "Failed to connect to ubus\n");
44 config_init_interfaces(NULL);