diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-09 17:53:53 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-09 17:53:53 -0300 |
commit | 60ef0911f742ecb97f1728400a6bc1828fb46ec7 (patch) | |
tree | 578eed10c597190ca0b352c55b31e0d647801a72 | |
parent | d9d1bd20c8caa5f12bb95b0af7fced1ec75473eb (diff) | |
download | pfsense-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.inc | 3 |
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"); |