X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=96f5ccd9d97c793c7e8c2034ed44a41d15d3aaae;hp=28bd09c88b4b49833a1bccf166641bd1c3edff86;hb=8a5898e747125c4cc289745e99653861dfbd4df8;hpb=70df830214c97a68fcb7e89ae0d7df58c35590be
diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi
index 28bd09c88b..96f5ccd9d9 100644
--- a/html/cgi-bin/index.cgi
+++ b/html/cgi-bin/index.cgi
@@ -55,10 +55,13 @@ my %mainsettings = ();
&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
my $connstate = &Header::connectionstatus();
-if ($connstate =~ /$Lang::tr{'dod waiting'}/ || -e "${General::swroot}/main/refreshindex") {
- $refresh = "";
-} elsif ($connstate =~ /$Lang::tr{'connecting'}/) {
+
+if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'} || $cgiparams{'ACTION'} eq $Lang::tr{'reboot'}) {
+ $refresh = "";
+} elsif ($connstate =~ /$Lang::tr{'connecting'}/ || /$Lang::tr{'connection closed'}/ ){
$refresh = "";
+} elsif ($connstate =~ /$Lang::tr{'dod waiting'}/ || -e "${General::swroot}/main/refreshindex") {
+ $refresh = "";
}
if ($cgiparams{'ACTION'} eq $Lang::tr{'dial profile'})