diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-13 16:56:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-13 16:56:18 +0000 |
commit | 411d8c3683494563e0b07b07c50d4f2108b33783 (patch) | |
tree | a7451b72ff8896b30987683de3bde95bdec23104 /etc/rc.newwanip | |
parent | 5963133d7db542125684c6e32249f0d09c0f348c (diff) | |
download | pfsense-411d8c3683494563e0b07b07c50d4f2108b33783.zip pfsense-411d8c3683494563e0b07b07c50d4f2108b33783.tar.gz |
Kill correct process
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 2 |
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 { |