X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fservices.cgi;h=b6efe095849431c112ab8d36bd488833aaa829d5;hp=156db2d2407cab273687a57820f022b841fbd464;hb=7fb1b9f680b91b0f3446172c07de7c4e9c106001;hpb=533f1e118796bb44550f1270fa7b1fa4c12e030c diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi old mode 100755 new mode 100644 index 156db2d240..b6efe09584 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2008 Michael Tremer & Christian Schmidt # +# Copyright (C) 2005-2010 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -275,10 +275,11 @@ sub isrunningaddon{ my $exename; my @memory; - my $testcmd = `/usr/local/bin/addonctrl $_ status`; + my $testcmd = `/usr/local/bin/addonctrl $_ status 2>/dev/null`; 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;