10 static int usage(const char *progname
)
12 fprintf(stderr
, "Usage: %s [options]\n"
14 " -s <path>: Path to the ubus socket\n"
20 int main(int argc
, char **argv
)
22 const char *socket
= NULL
;
25 while ((ch
= getopt(argc
, argv
, "s:")) != -1) {
31 return usage(argv
[0]);
35 if (netifd_ubus_init(NULL
) < 0) {
36 fprintf(stderr
, "Failed to connect to ubus\n");
40 config_init_interfaces(NULL
);