mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
fireinfo.cgi: Use pakfire lib to gather the pakfire version.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
5cbcd514de
commit
fd90cadc97
@@ -28,6 +28,7 @@ use CGI::Carp 'fatalsToBrowser';
|
||||
require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
require "${General::swroot}/header.pl";
|
||||
require '/opt/pakfire/lib/functions.pl';
|
||||
|
||||
my $configfile = "/var/ipfire/main/send_profile";
|
||||
|
||||
@@ -84,7 +85,7 @@ if ($errormessage) {
|
||||
}
|
||||
|
||||
my $ipfire_version = `cat /etc/system-release`;
|
||||
my $pakfire_version = `cat /opt/pakfire/etc/pakfire.conf | grep "version =" | cut -d\\" -f2`;
|
||||
my $pakfire_version = &Pakfire::make_version();
|
||||
my $kernel_version = `uname -a`;
|
||||
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'fireinfo system version'});
|
||||
|
||||
Reference in New Issue
Block a user