From 45f2708c42f0bb7c27e5cdf2de1c61dfc6daf27f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 25 Jan 2007 00:56:58 +0000 Subject: Work around DHCLIENT issue temporarily until we can deterimine why it is occuring. --- etc/rc.newwanip | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'etc/rc.newwanip') 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; -- cgit v1.1