X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fpakfire.cgi;h=5903d8525939d02ba3c2c4c770fd79699907ddda;hb=6233483ba7d92b83a80e5a4759f83248198eb2f2;hp=9cfe83eec64b666090b10f93df36c2a869b26e99;hpb=c32eea083ba011e46abca44fa26cda8875769768;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index 9cfe83eec..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,7 +43,6 @@ $pakfiresettings{'VALID'} = ''; $pakfiresettings{'INSPAKS'} = ''; $pakfiresettings{'DELPAKS'} = ''; $pakfiresettings{'AUTOUPDATE'} = 'off'; -$pakfiresettings{'AUTOUPGRADE'} = 'off'; $pakfiresettings{'HEALTHCHECK'} = 'on'; $pakfiresettings{'UUID'} = 'on'; @@ -153,12 +152,6 @@ END system("/usr/local/bin/pakfire disable updates >/dev/null 2>&1"); } - if ($pakfiresettings{'AUTOUPGRADE'} eq 'on') { - system("/usr/local/bin/pakfire enable upgrades >/dev/null 2>&1"); - } else { - system("/usr/local/bin/pakfire disable upgrades >/dev/null 2>&1"); - } - &General::writehash("${General::swroot}/pakfire/settings", \%pakfiresettings); } @@ -170,9 +163,6 @@ my %checked=(); $checked{'AUTOUPDATE'}{'off'} = ''; $checked{'AUTOUPDATE'}{'on'} = ''; $checked{'AUTOUPDATE'}{$pakfiresettings{'AUTOUPDATE'}} = "checked='checked'"; -$checked{'AUTOUPGRADE'}{'off'} = ''; -$checked{'AUTOUPGRADE'}{'on'} = ''; -$checked{'AUTOUPGRADE'}{$pakfiresettings{'AUTOUPGRADE'}} = "checked='checked'"; $checked{'HEALTHCHECK'}{'off'} = ''; $checked{'HEALTHCHECK'}{'on'} = ''; $checked{'HEALTHCHECK'}{$pakfiresettings{'HEALTHCHECK'}} = "checked='checked'"; @@ -229,13 +219,19 @@ my $packages_update_age = &General::age("/opt/pakfire/db/lists/packages_list.db" print < +END +if ( -e "/var/run/need_reboot") { + print "$Lang::tr{'needreboot'}!"; + print " " +} +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'}

@@ -296,9 +292,6 @@ print <$Lang::tr{'pakfire update daily'} on | off - $Lang::tr{'pakfire core update auto'} - on | - off $Lang::tr{'pakfire health check'} on | off