X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=b85b22ce83609e02035b12d10dc3de512c07a574;hp=dfe65bf81be1f9a8e3b053bd8aff1fecd5403d51;hb=337305ef81675c30162e9ce7d373ade32bf643c1;hpb=dfa59dbd1f12f3427c51215e76b4a825f8a169fc diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi old mode 100644 new mode 100755 index dfe65bf81b..b85b22ce83 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -39,6 +39,7 @@ my $warnmessage = ''; my $refresh = ""; my $ipaddr=''; + &Header::showhttpheaders(); $cgiparams{'ACTION'} = ''; @@ -57,6 +58,12 @@ my %mainsettings = (); my $connstate = &Header::connectionstatus(); +# check if reboot is necessary +my $reboot = 0; +if (`find /var/run/need_reboot 2>/dev/null`) { + $reboot = 1; +} + if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'} || $cgiparams{'ACTION'} eq $Lang::tr{'reboot'}) { $refresh = ""; } elsif ($connstate =~ /$Lang::tr{'connecting'}/ || /$Lang::tr{'connection closed'}/ ){ @@ -428,6 +435,7 @@ foreach my $file (@files) { } } + if ($warnmessage) { print "$warnmessage"; } @@ -437,8 +445,10 @@ END ; &Pakfire::dblist("upgrade", "notice"); print <$Lang::tr{'needreboot'}!"; +} } else { my $message=''; if ($death) {