fix path and invocation for hotplug calls
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Oct 2011 14:29:58 +0000 (16:29 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Oct 2011 14:29:58 +0000 (16:29 +0200)
interface-event.c
netifd.h

index 83ac6f7..4e0773d 100644 (file)
@@ -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;
        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);
        argv[2] = NULL;
        execvp(argv[0], argv);
        exit(127);
index 2167d6f..9bf3f98 100644 (file)
--- 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_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
 
 #define DEFAULT_RESOLV_CONF    "/tmp/resolv.conf.auto"
 #endif