summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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