summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-13 16:56:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-13 16:56:18 +0000
commit411d8c3683494563e0b07b07c50d4f2108b33783 (patch)
treea7451b72ff8896b30987683de3bde95bdec23104 /etc/rc.newwanip
parent5963133d7db542125684c6e32249f0d09c0f348c (diff)
downloadpfsense-411d8c3683494563e0b07b07c50d4f2108b33783.zip
pfsense-411d8c3683494563e0b07b07c50d4f2108b33783.tar.gz
Kill correct process
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 830186f..f5ab000 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -61,7 +61,7 @@ if(!$old_ip)
if(file_exists("{$g['vardb_path']}/{$interface}_ip"))
$old_ip = file_get_contents("{$g['vardb_path']}/{$interface}_ip");
if($old_ip) {
- $helpers = exec("/bin/ps awux | grep \"{$old_ip}\" | grep -v \"grep\" | awk '{ print $6 }'");
+ $helpers = exec("/bin/ps awux | grep \"{$old_ip}\" | grep -v \"grep\" | awk '{ print $2 }'");
if($helpers)
mwexec("kill " . trim($helpers));
} else {
OpenPOWER on IntegriCloud