summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-21 04:24:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-21 04:24:38 +0000
commit39ac8421bb172f0993b9c377442728e162463882 (patch)
tree5c61a7091c262d3f5ee00381b6050e9e80440360 /etc/rc.newwanip
parent49fdfc7d641c5dd73bcbe3025094a379c8e2b42c (diff)
downloadpfsense-39ac8421bb172f0993b9c377442728e162463882.zip
pfsense-39ac8421bb172f0993b9c377442728e162463882.tar.gz
s/$$/$/
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip20
1 files changed, 10 insertions, 10 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index e791c85..a10a1f6 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -38,10 +38,10 @@
$argument = str_replace("\n", "", $argv[1]);
if($argument <> "") {
- $curwanip = find_interface_ip($$argument);
- $interface = convert_real_interface_to_friendly_interface_name($$argument);
+ $curwanip = find_interface_ip($argument);
+ $interface = convert_real_interface_to_friendly_interface_name($argument);
if($curwanip == "")
- $curwanip = get_current_wan_address();
+ $curwanip = get_current_wan_address();
} else {
$curwanip = get_current_wan_address();
$interface = "wan";
@@ -52,7 +52,7 @@
$old_ip = file_get_contents("/tmp/rc.newwanip_oldip");
$helpers = exec("/bin/ps awux | grep {$old_ip} | grep -v grep | cut -d\" \" -f6");
mwexec("kill " . trim($helpers));
- unlink("/tmp/rc.newwanip_oldip");
+ unlink("/tmp/rc.newwanip_oldip");
}
/* reconfigure IPsec tunnels */
@@ -77,17 +77,17 @@
fwrite($fd, $curwanip);
fclose($fd);
}
-
+
log_error("Informational: DHClient spawned /etc/rc.newwanip and the new ip is {$interface} - {$curwanip}.");
-
+
touch("/tmp/update_dyndns");
-
+
/* signal filter reload */
touch("/tmp/filter_dirty");
-
+
/* reload graphing functions */
enable_rrd_graphing();
-
+
return 0;
-
+
?> \ No newline at end of file
OpenPOWER on IntegriCloud