dhcp: more intelligent default DHCP client detection

This commit is contained in:
Jiří Klimeš
2010-03-06 00:07:06 -08:00
committed by Dan Williams
parent dbacb05d2a
commit 798d68caa4
2 changed files with 16 additions and 1 deletions

View File

@@ -652,7 +652,8 @@ main (int argc, char *argv[])
goto done;
}
dhcp_mgr = nm_dhcp_manager_new (dhcp ? dhcp : "dhclient", &error);
/* Initialize DHCP manager */
dhcp_mgr = nm_dhcp_manager_new (dhcp, &error);
if (!dhcp_mgr) {
nm_warning ("Failed to start the DHCP manager: %s.", error->message);
goto done;