Send errors to 2>

This commit is contained in:
Scott Ullrich 2010-11-15 13:50:56 -05:00
parent 64ec1ddf35
commit 0dcdbc8573

View File

@ -1792,7 +1792,7 @@ EOD;
fclose($fd);
/* fire up dhclient */
mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$vipif}.conf {$vipif} > {$g['tmp_path']}/{$vipif}_output > {$g['tmp_path']}/{$vipif}_error_output", false);
mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$vipif}.conf {$vipif} >{$g['tmp_path']}/{$vipif}_output 2>{$g['tmp_path']}/{$vipif}_error_output", false);
} else {
log_error("Error: cannot open dhclient_{$vipif}.conf in interfaces_carpdev_configure() for writing.\n");
mwexec("/sbin/dhclient -b {$vipif}");