Make sure dhclient is not running before start it, it fixes console interface setup when interface is using dhcpv4. It should also help #3482

This commit is contained in:
Renato Botelho 2014-09-09 17:53:53 -03:00
parent d9d1bd20c8
commit 60ef0911f7

View File

@ -3909,6 +3909,9 @@ EOD;
else
log_error(printf(gettext("Could not bring up %s interface in interface_dhcp_configure()"), $wanif));
/* Make sure dhclient is not running */
kill_dhclient_process($wanif);
/* fire up dhclient */
mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$interface}.conf {$wanif} > {$g['tmp_path']}/{$wanif}_output 2> {$g['tmp_path']}/{$wanif}_error_output");