X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd.c;fp=ubusd.c;h=f1f8ac7f003024b0661d0651f7935212c32c265a;hp=6629720831348573ed7c6727036b67a2ea15ab68;hb=83461b97917d5a6a49357e9c981a9de840af5b6e;hpb=152dd96f63a4af8aafc6c61b6139850af8fe8395 diff --git a/ubusd.c b/ubusd.c index 6629720..f1f8ac7 100644 --- a/ubusd.c +++ b/ubusd.c @@ -356,6 +356,7 @@ static int usage(const char *progname) { fprintf(stderr, "Usage: %s []\n" "Options: \n" + " -A : Set the path to ACL files\n" " -s : Set the unix domain socket to listen on\n" "\n", progname); return 1; @@ -378,11 +379,14 @@ int main(int argc, char **argv) openlog("ubusd", LOG_PID, LOG_DAEMON); uloop_init(); - while ((ch = getopt(argc, argv, "s:")) != -1) { + while ((ch = getopt(argc, argv, "A:s:")) != -1) { switch (ch) { case 's': ubus_socket = optarg; break; + case 'A': + ubusd_acl_dir = optarg; + break; default: return usage(argv[0]); }