summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-19 02:44:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-19 02:44:32 +0000
commit209309ac909a41c2822538fd537ac6a6952362d7 (patch)
treeff0d86c3ca2e6ae94d1d6440f131a17ecaf9dcb0
parentc4684f093564e1d6c94dbd9aec2648cc0a98e4c4 (diff)
downloadpfsense-209309ac909a41c2822538fd537ac6a6952362d7.zip
pfsense-209309ac909a41c2822538fd537ac6a6952362d7.tar.gz
Bring wan interface up before starting dhclient
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 1af21da..2ca1739 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -514,7 +514,10 @@ EOD;
fwrite($fd, $dhclientconf);
fclose($fd);
-
+
+ /* bring wan interface up before starting dhclient */
+ mwexec("/sbin/ifconfig {$wancfg['if']} up");
+
/* fire up dhclient - don't wait for the lease (-nw) */
mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient.conf " .
escapeshellarg($wancfg['if']) . " &");
OpenPOWER on IntegriCloud