Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba2ba5c0 authored by Matt Gumbel's avatar Matt Gumbel
Browse files

Fix dhcpcd startup when net.hostname is not set



Commit 62d6f748 swapped p2p_interface and DHCP_CONFIG_PATH
erroneously. This reverts them to their correct ordering and makes dhcpcd
startup work again.

Change-Id: Iea033a7e0dad98bb2a63fb39755330675cfbb0ab
Signed-off-by: default avatarMatt Gumbel <matthew.k.gumbel@intel.com>
parent 7cd45071
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -211,7 +211,7 @@ int dhcp_do_request(const char *interface,
                 p2p_interface, DHCP_CONFIG_PATH, prop_value, interface);
                 p2p_interface, DHCP_CONFIG_PATH, prop_value, interface);
    else
    else
        snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:-f %s %s", DAEMON_NAME,
        snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:-f %s %s", DAEMON_NAME,
                 DHCP_CONFIG_PATH, p2p_interface, interface);
                 p2p_interface, DHCP_CONFIG_PATH, interface);
    memset(prop_value, '\0', PROPERTY_VALUE_MAX);
    memset(prop_value, '\0', PROPERTY_VALUE_MAX);
    property_set(ctrl_prop, daemon_cmd);
    property_set(ctrl_prop, daemon_cmd);
    if (wait_for_property(daemon_prop_name, desired_status, 10) < 0) {
    if (wait_for_property(daemon_prop_name, desired_status, 10) < 0) {