diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-19 02:44:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-19 02:44:32 +0000 |
commit | 209309ac909a41c2822538fd537ac6a6952362d7 (patch) | |
tree | ff0d86c3ca2e6ae94d1d6440f131a17ecaf9dcb0 /etc | |
parent | c4684f093564e1d6c94dbd9aec2648cc0a98e4c4 (diff) | |
download | pfsense-209309ac909a41c2822538fd537ac6a6952362d7.zip pfsense-209309ac909a41c2822538fd537ac6a6952362d7.tar.gz |
Bring wan interface up before starting dhclient
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
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']) . " &"); |