From 209309ac909a41c2822538fd537ac6a6952362d7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Jun 2005 02:44:32 +0000 Subject: Bring wan interface up before starting dhclient --- etc/inc/interfaces.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']) . " &"); -- cgit v1.1