From 60ef0911f742ecb97f1728400a6bc1828fb46ec7 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 9 Sep 2014 17:53:53 -0300 Subject: Make sure dhclient is not running before start it, it fixes console interface setup when interface is using dhcpv4. It should also help #3482 --- etc/inc/interfaces.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a4390ad..a51d8be 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -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"); -- cgit v1.1