summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-25 00:56:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-25 00:56:58 +0000
commit45f2708c42f0bb7c27e5cdf2de1c61dfc6daf27f (patch)
tree1e76f9d851a1082444f08000837e523f231dc8e0 /etc
parent383a3d3aec7c766bbbb364136421edfa5cf45679 (diff)
downloadpfsense-45f2708c42f0bb7c27e5cdf2de1c61dfc6daf27f.zip
pfsense-45f2708c42f0bb7c27e5cdf2de1c61dfc6daf27f.tar.gz
Work around DHCLIENT issue temporarily until we can deterimine why it is occuring.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 54a2807..f5854a7 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -54,6 +54,11 @@ if($argument <> "") {
$interface_real = $config['interfaces']['wan']['if'];
}
+if($curwanip == "0.0.0.0") {
+ log_error("Failed to update WAN IP, restarting dhclient.");
+ exec("dhclient $interface_real");
+}
+
/* grab the prior ip for pftpx tests */
if(file_exists("/tmp/rc.newwanip_oldip")) {
/* grab hint from dhclient */
@@ -116,7 +121,7 @@ exec("/etc/rc.start_packages");
/* if ($config['load_balancer']['lbpool']['type'] == "gateway") */
slbd_configure();
log_error("Configuring slbd");
-
+
return 0;
OpenPOWER on IntegriCloud