summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
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