From 7fb1b9f680b91b0f3446172c07de7c4e9c106001 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 10 Feb 2011 19:49:23 +0100 Subject: [PATCH] Fix addon service pid/memory display if the addon name has numbers. --- config/rootfiles/core/47/filelists/files | 1 + html/cgi-bin/services.cgi | 1 + 2 files changed, 2 insertions(+) diff --git a/config/rootfiles/core/47/filelists/files b/config/rootfiles/core/47/filelists/files index 0037af1833..1df41d9a76 100644 --- a/config/rootfiles/core/47/filelists/files +++ b/config/rootfiles/core/47/filelists/files @@ -1 +1,2 @@ etc/system-release +srv/web/ipfire/cgi-bin/services.cgi diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi index 424ca868f1..b6efe09584 100644 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -279,6 +279,7 @@ sub isrunningaddon{ if ( $testcmd =~ /is\ running/ && $testcmd !~ /is\ not\ running/){ $status = "$Lang::tr{'running'}"; + $testcmd =~ s/.* //gi; $testcmd =~ s/[a-z_]//gi; $testcmd =~ s/\[[0-1]\;[0-9]+//gi; $testcmd =~ s/[\(\)\.]//gi; -- 2.39.2