my $refresh = "";
my $ipaddr='';
+
&Header::showhttpheaders();
$cgiparams{'ACTION'} = '';
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 = "<meta http-equiv='refresh' content='300;'>";
} elsif ($connstate =~ /$Lang::tr{'connecting'}/ || /$Lang::tr{'connection closed'}/ ){
}
}
+
if ($warnmessage) {
print "<tr><td align='center' bgcolor=$Header::colourred colspan='3'><font color='white'>$warnmessage</font></table>";
}
;
&Pakfire::dblist("upgrade", "notice");
print <<END;
-
END
+if ($reboot == 0) {
+ print "<br /><font color='red'>$Lang::tr{'needreboot'}!</font>";
+}
} else {
my $message='';
if ($death) {