summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index bf3e05f..d22cc22 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -51,7 +51,8 @@
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\" | awk '{ print $6 }'");
- mwexec("kill " . trim($helpers));
+ if($helpers)
+ mwexec("kill " . trim($helpers));
unlink("/tmp/rc.newwanip_oldip");
}
OpenPOWER on IntegriCloud