summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-07 18:51:55 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-07 18:51:55 +0200
commit2152229c45f470a14dee33507b331ac38055e062 (patch)
treee23c22759d6dfa0edd1300aa77e7a6c283300139 /main.c
parented1bbf2f3c9933e7088299704d9b6e9dd61f027d (diff)
downloadnetifd-2152229c45f470a14dee33507b331ac38055e062.tar.gz
add support for calls to a hotplug script on interface state changes
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
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>: Mask for debug messages\n"
" -s <path>: Path to the ubus socket\n"
" -p <path>: Path to netifd addons (default: %s)\n"
+ " -h <path>: 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]);
}