summaryrefslogtreecommitdiffhomepage
path: root/netifd.h
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 /netifd.h
parented1bbf2f3c9933e7088299704d9b6e9dd61f027d (diff)
add support for calls to a hotplug script on interface state changes
Diffstat (limited to 'netifd.h')
-rw-r--r--netifd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/netifd.h b/netifd.h
index 1bb3820..926cab8 100644
--- a/netifd.h
+++ b/netifd.h
@@ -13,6 +13,13 @@
#include "utils.h"
+#ifdef DUMMY_MODE
+#define DEFAULT_HOTPLUG_PATH "./scripts/hotplug-cmd"
+#else
+#define DEFAULT_HOTPLUG_PATH "/sbin/hotplug-cmd"
+#endif
+
+extern char *hotplug_cmd_path;
extern unsigned int debug_mask;
enum {