summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-09-09 17:53:53 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-09-09 17:53:53 -0300
commit60ef0911f742ecb97f1728400a6bc1828fb46ec7 (patch)
tree578eed10c597190ca0b352c55b31e0d647801a72
parentd9d1bd20c8caa5f12bb95b0af7fced1ec75473eb (diff)
downloadpfsense-60ef0911f742ecb97f1728400a6bc1828fb46ec7.zip
pfsense-60ef0911f742ecb97f1728400a6bc1828fb46ec7.tar.gz
Make sure dhclient is not running before start it, it fixes console interface setup when interface is using dhcpv4. It should also help #3482
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
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");
OpenPOWER on IntegriCloud