mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
d9d1bd20c8
commit
60ef0911f7
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user