mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
New tarball. Tiny fix for an obscure fringe case, leaving numbering as is.
In some cases, dmidecode returns the grammatically wrong message: 'No smbios nor dmi data' instead of 'No smbios or dmi data', corrected the search to look for simpler: 'no smbios ' to avoid that random error.
This commit is contained in:
parent
ba17e082c9
commit
a08712ce7d
2
inxi
2
inxi
|
@ -5202,7 +5202,7 @@ get_machine_data()
|
||||||
if [[ -n $DMIDECODE_DATA ]];then
|
if [[ -n $DMIDECODE_DATA ]];then
|
||||||
if [[ $B_ROOT == 'true' ]];then
|
if [[ $B_ROOT == 'true' ]];then
|
||||||
# this handles very old systems, like Lenny 2.6.26, with dmidecode, but no data
|
# this handles very old systems, like Lenny 2.6.26, with dmidecode, but no data
|
||||||
if [[ -n $( grep -i 'no smbios or dmi' <<< "$DMIDECODE_DATA" ) ]];then
|
if [[ -n $( grep -i 'no smbios ' <<< "$DMIDECODE_DATA" ) ]];then
|
||||||
array_string='dmidecode-no-smbios-dmi-data'
|
array_string='dmidecode-no-smbios-dmi-data'
|
||||||
# please note: only dmidecode version 2.11 or newer supports consistently the -s flag
|
# please note: only dmidecode version 2.11 or newer supports consistently the -s flag
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
=====================================================================================
|
||||||
|
Version: 1.8.37
|
||||||
|
Patch Version: 00
|
||||||
|
Script Date: February 11 2013
|
||||||
|
-----------------------------------
|
||||||
|
Changes:
|
||||||
|
-----------------------------------
|
||||||
|
New tarball. Tiny fix for an obscure fringe case, leaving numbering as is.
|
||||||
|
|
||||||
|
In some cases, dmidecode returns the grammatically wrong message:
|
||||||
|
'No smbios nor dmi data' instead of 'No smbios or dmi data', corrected the search
|
||||||
|
to look for simpler: 'no smbios ' to avoid that random error.
|
||||||
|
|
||||||
|
-----------------------------------
|
||||||
|
-- Harald Hope - Tue, 12 Feb 2013 09:54:51 -0800
|
||||||
|
|
||||||
=====================================================================================
|
=====================================================================================
|
||||||
Version: 1.8.37
|
Version: 1.8.37
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue