9 static int usage(const char *progname
)
11 fprintf(stderr
, "Usage: %s [options]\n"
13 " -s <path>: Path to the ubus socket\n"
19 int main(int argc
, char **argv
)
21 const char *socket
= NULL
;
24 while ((ch
= getopt(argc
, argv
, "s:")) != -1) {
30 return usage(argv
[0]);
34 if (netifd_ubus_init(NULL
) < 0) {
35 fprintf(stderr
, "Failed to connect to ubus\n");
39 config_init_interfaces(NULL
);