From 411d8c3683494563e0b07b07c50d4f2108b33783 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 13 Sep 2006 16:56:18 +0000 Subject: Kill correct process --- etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/rc.newwanip') 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 { -- cgit v1.1