From 832535ef944ca2686125a8c5a3d5ef961920bc65 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/usr/local') 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 10b8129..4a75ea8 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -65,6 +65,7 @@ include_once("includes/functions.inc.php"); $sysinfo_items = array( 'name' => gettext('Name'), 'system' => gettext('System'), + 'bios' => gettext('BIOS'), 'version' => gettext('Version'), 'platform' => gettext('Platform'), 'cpu_type' => gettext('CPU Type'), @@ -189,6 +190,33 @@ $skipsysinfoitems = explode(",", $user_settings['widgets']['system_information'] /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