From 7c48e60e170352a4691530f3706e4cbcfc9bd964 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 23 Mar 2017 11:05:54 -0400 Subject: Show BIOS information in the system info widget, if it exists in kenv. --- .../widgets/widgets/system_information.widget.php | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index fc9611e..c9b10b6 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -33,6 +33,7 @@ include_once("includes/functions.inc.php"); $sysinfo_items = array( 'name' => gettext('Name'), 'system' => gettext('System'), + 'bios' => gettext('BIOS'), 'version' => gettext('Version'), 'cpu_type' => gettext('CPU Type'), 'hwcrypto' => gettext('Hardware Crypto'), @@ -159,6 +160,33 @@ $rows_displayed = false; /dev/null', $biosvendor); + $_gb = exec('/bin/kenv -q smbios.bios.version 2>/dev/null', $biosversion); + $_gb = exec('/bin/kenv -q smbios.bios.reldate 2>/dev/null', $biosdate); + /* Only display BIOS information if there is any to show. */ + if (!empty($biosvendor[0]) || !empty($biosversion[0]) || !empty($biosdate[0])): +?> + + + + +
+ + +
+ + +
+ + + + -- cgit v1.1