X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fpakfire.cgi;h=5903d8525939d02ba3c2c4c770fd79699907ddda;hb=7cc8a0e526d20b2bf75a68ff208a3dbf0723c552;hp=cadc23534f34c2d8addd9fd1d3867b3ea0c84078;hpb=d2414ee76e5927d10aa1dbec5534175639fbe73a;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index cadc23534..5903d8525 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2011 Michael Tremer & Christian Schmidt # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -43,9 +43,11 @@ $pakfiresettings{'VALID'} = ''; $pakfiresettings{'INSPAKS'} = ''; $pakfiresettings{'DELPAKS'} = ''; $pakfiresettings{'AUTOUPDATE'} = 'off'; -$pakfiresettings{'AUTOUPGRADE'} = 'off'; +$pakfiresettings{'HEALTHCHECK'} = 'on'; $pakfiresettings{'UUID'} = 'on'; +sub refreshpage{&Header::openbox( 'Waiting', 1, "" );print "
END - my @output = `tail -20 /var/log/pakfire.log`; + my @output = `grep pakfire /var/log/messages | tail -20`; foreach (@output) { print "$_"; } @@ -209,6 +205,7 @@ END &Header::closebigbox(); &Header::closepage(); exit; + refreshpage(); } my $core_release = `cat /opt/pakfire/db/core/mine 2>/dev/null`; @@ -222,16 +219,22 @@ my $packages_update_age = &General::age("/opt/pakfire/db/lists/packages_list.db" print <+END +if ( -e "/var/run/need_reboot") { + print " "; + print " $Lang::tr{'needreboot'}! " +} +print < $Lang::tr{'pakfire system state'}: $Lang::tr{'pakfire core update level'}: $core_release
- $Lang::tr{'pakfire last update'} $core_update_age ago
- $Lang::tr{'pakfire last serverlist update'} $server_update_age ago
- $Lang::tr{'pakfire last core list update'} $corelist_update_age ago
- $Lang::tr{'pakfire last package update'} $packages_update_age ago + $Lang::tr{'pakfire last update'} $core_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last serverlist update'} $server_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last core list update'} $corelist_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last package update'} $packages_update_age $Lang::tr{'pakfire ago'}END