X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=052e8cac648da0dacce7efc3c46430c410f13646;hp=dfe65bf81be1f9a8e3b053bd8aff1fecd5403d51;hb=766bed31a386626d3285a3fa8015ebe96dfa1b10;hpb=0a8db55873838c67f045d4124f566451019622a8 diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi old mode 100644 new mode 100755 index dfe65bf81b..052e8cac64 --- 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) {