X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=eec3f9bf361f6a1d463c4e616e16e504c05b3f0a;hp=8e623c96afba617949e4ba5753c76a678a3c6fb8;hb=57ba1e9023b0f1f3499cc888f66827a81574bb41;hpb=73c7eff80ece6765c5c147514a3ce2153f7bf4c8 diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 8e623c96af..eec3f9bf36 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -369,7 +369,9 @@ END $active = "
$Lang::tr{'capsclosed'}
"; } else { foreach my $line (@status) { - if ($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) { + if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) || + ($line =~/ $confighash{$key}[1]\{.*INSTALLED/ )) + { $active = "
$Lang::tr{'capsopen'}
"; } } @@ -407,7 +409,7 @@ if ($used / $mem > 90) { # Diskspace usage warning my @temp=(); my $temp2=(); -my @df = `/bin/df -B M -x rootfs`; +my @df = `/bin/df -B M -P -x rootfs`; foreach my $line (@df) { next if $line =~ m/^Filesystem/; if ($line =~ m/root/ ) {