summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-09 22:08:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-09 22:08:54 +0000
commit41a77064ef4e16e0f7dfdc578937869fcc06e12c (patch)
treed72304b488ff32685d2a8429b17ab97fe06ff435 /etc/rc.newwanip
parent5cf44e4836873c2ef53c8e89867a0859166b19ad (diff)
downloadpfsense-41a77064ef4e16e0f7dfdc578937869fcc06e12c.zip
pfsense-41a77064ef4e16e0f7dfdc578937869fcc06e12c.tar.gz
Fix errors:
Parse error: syntax error, unexpected ';' in /etc/rc.newwanip on line 52 Parse error: syntax error, unexpected '}' in /etc/rc.newwanip on line 55 Thanks to Trendchiller for allowing me access to his firewall to investigate.
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 070b3e2..f5fbd2d 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -46,11 +46,11 @@
}
/* grab the prior ip for pftpx tests */
- if(file_exists("/tmp/rc.newwanip_oldip")) {
- $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");
+ if(file_exists("/tmp/rc.newwanip_oldip")) {
+ $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");
}
/* reconfigure IPsec tunnels */
OpenPOWER on IntegriCloud