fix path and invocation for hotplug calls
[oweals/netifd.git] / interface-event.c
index 83ac6f771fbc33b2f816e24daa7e6111eae45a95..4e0773df45adb1966ec522f85d572c1f61e249ba 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;
-       argv[1] = "network";
+       argv[1] = "iface";
        argv[2] = NULL;
        execvp(argv[0], argv);
        exit(127);