X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=main.c;h=4757b79ed0b7096a5a8dae8c32a76b4b43cabed9;hp=465398f219ac606effdfe3afb5a8cb4cb4d13b9d;hb=2152229c45f470a14dee33507b331ac38055e062;hpb=64c271ed3bd50ce5ffbf69108d75bb79d279e8d9 diff --git a/main.c b/main.c index 465398f..4757b79 100644 --- a/main.c +++ b/main.c @@ -46,6 +46,8 @@ static int usage(const char *progname) " -d : Mask for debug messages\n" " -s : Path to the ubus socket\n" " -p : Path to netifd addons (default: %s)\n" + " -h : Path to the hotplug script\n" + " (default: "DEFAULT_HOTPLUG_PATH")\n" "\n", progname, main_path); return 1; @@ -69,6 +71,9 @@ int main(int argc, char **argv) case 'p': main_path = optarg; break; + case 'h': + hotplug_cmd_path = optarg; + break; default: return usage(argv[0]); }