improve debug info

This commit is contained in:
itsmattkc 2024-05-30 13:00:22 -07:00
parent 46cc78ff01
commit 6faf37af21

View file

@ -213,9 +213,12 @@ int call_dhcp(const char *network_interface)
dhclient_script = malloc(buf_size);
get_binary_in_working_directory("../sbin/dhclient-script", dhclient_script, buf_size);
argv[3] = dhclient_script;
print_info("Using custom dhclient at: %s", argv[0]);
} else {
print_info("Using system dhclient");
}
print_info(argv[0]);
pid_t dhclient_pid;
int r = start_process(argv, &dhclient_pid, NULL);