.tftp = HOST_PROG_TFTP,
.umount = HOST_PROG_UMOUNT,
.wget = HOST_PROG_WGET,
+ .ip = HOST_PROG_IP,
+ .udhcpc = HOST_PROG_UDHCPC,
};
int pb_mkdir_recursive(const char *dir)
* @wait: Wait for the child process to complete before returning.
* @dry_run: Don't actually fork and exec.
*/
-
int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run)
{
#if defined(DEBUG)
return -1;
}
+
if (pid == 0) {
int log = fileno(pb_log_get_stream());
status = dup2(log, STDOUT_FILENO);
assert(status != -1);
-
status = dup2(log, STDERR_FILENO);
assert(status != -1);