summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-20 16:29:58 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-20 16:29:58 +0200
commitcd6ff76cf1ae89d1148c3399b725103a144aca3e (patch)
treefb453e8fd741f2485af0abb0a8dc2d1e5847dbd4
parentea6dec1329b08109387f091b60a13d1b40839317 (diff)
fix path and invocation for hotplug calls
-rw-r--r--interface-event.c2
-rw-r--r--netifd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/interface-event.c b/interface-event.c
index 83ac6f7..4e0773d 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -40,7 +40,7 @@ run_cmd(const char *ifname, const char *device, bool up)
if (device)
setenv("DEVICE", device, 1);
argv[0] = hotplug_cmd_path;
- argv[1] = "network";
+ argv[1] = "iface";
argv[2] = NULL;
execvp(argv[0], argv);
exit(127);
diff --git a/netifd.h b/netifd.h
index 2167d6f..9bf3f98 100644
--- a/netifd.h
+++ b/netifd.h
@@ -19,7 +19,7 @@
#define DEFAULT_RESOLV_CONF "./tmp/resolv.conf"
#else
#define DEFAULT_MAIN_PATH "/lib/netifd"
-#define DEFAULT_HOTPLUG_PATH "/sbin/hotplug-cmd"
+#define DEFAULT_HOTPLUG_PATH "/sbin/hotplug-call"
#define DEFAULT_RESOLV_CONF "/tmp/resolv.conf.auto"
#endif