summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 6ea7554..db381bd 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -38,7 +38,7 @@ require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
-/* WAN IP address has changed */
+/* Interface IP address has changed */
$argument = str_replace("\n", "", $argv[1]);
@@ -72,7 +72,7 @@ if($old_ip) {
if($helpers)
mwexec("kill " . trim($helpers));
} else {
- log_error("WARNING! /etc/rc.newwanip could not determine the previous IP address ( $interface_real ).");
+ log_error("WARNING! /etc/rc.newwanip could not determine the previous IP address of {$interface}( {$interface_real} ).");
}
/* reconfigure IPsec tunnels */
@@ -95,9 +95,9 @@ if ($fd) {
fclose($fd);
}
-log_error("Informational: DHClient spawned /etc/rc.newwanip and the new ip is {$interface} - {$curwanip}.");
+log_error("Informational: DHClient spawned /etc/rc.newwanip for interface {$interface} with new ip {$curwanip}.");
-touch("/tmp/update_dyndns");
+file_put_contents("/tmp/update_dyndns", $interface);
/* signal filter reload */
unlink_if_exists("/tmp/config.cache");
@@ -122,4 +122,4 @@ if($old_ip <> "") {
setup_gateways_monitor();
return 0;
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud