mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
New version, new tarball. Fixed issue #120 where -z fails to anonymize serial numbers.
Also fixed a FreeBSD issue where I'd failed to update -G to show driver.
This commit is contained in:
parent
df3a735ac2
commit
fd13a1efde
55
inxi
55
inxi
|
@ -2,8 +2,8 @@
|
|||
########################################################################
|
||||
SELF_NAME='inxi'
|
||||
# don't quote the following, parsers grab these too
|
||||
SELF_VERSION=2.3.34
|
||||
SELF_DATE=2017-08-04
|
||||
SELF_VERSION=2.3.35
|
||||
SELF_DATE=2017-08-11
|
||||
SELF_PATCH=00
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -9651,7 +9651,7 @@ get_pciconf_card_data()
|
|||
A_AUDIO_DATA[j]=$array_string
|
||||
;;
|
||||
display)
|
||||
array_string="$device_string,${a_temp[4]},${a_temp[5]}"
|
||||
array_string="$device_string,${a_temp[4]},${a_temp[5]},${a_temp[3]}"
|
||||
A_GRAPHICS_CARD_DATA[j]=$array_string
|
||||
;;
|
||||
network)
|
||||
|
@ -12745,7 +12745,11 @@ print_battery_data()
|
|||
fi
|
||||
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
|
||||
if [[ -n ${a_battery_working[16]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
serial=$FILTER_STRING
|
||||
else
|
||||
serial="${a_battery_working[16]} "
|
||||
fi
|
||||
else
|
||||
serial='N/A '
|
||||
fi
|
||||
|
@ -13554,8 +13558,13 @@ print_hard_disk_data()
|
|||
fi
|
||||
fi
|
||||
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
|
||||
if [[ -n ${a_hdd_working[4]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
hdd_serial=$FILTER_STRING
|
||||
else
|
||||
hdd_serial=${a_hdd_working[4]}
|
||||
if [[ -z $hdd_serial ]];then
|
||||
fi
|
||||
else
|
||||
hdd_serial='N/A'
|
||||
fi
|
||||
hdd_serial="${C1}serial$SEP3${C2} $hdd_serial "
|
||||
|
@ -13874,9 +13883,16 @@ print_machine_data()
|
|||
if [[ -n ${A_MACHINE_DATA[14]} ]];then
|
||||
chassis_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[14]}"
|
||||
fi
|
||||
if [[ -n ${A_MACHINE_DATA[15]} && $B_OUTPUT_FILTER != 'true' ]];then
|
||||
chassis_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[15]}"
|
||||
if [[ -n ${A_MACHINE_DATA[15]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
chassis_serial=$FILTER_STRING
|
||||
else
|
||||
chassis_serial=${A_MACHINE_DATA[15]}
|
||||
fi
|
||||
else
|
||||
chassis_serial='N/A'
|
||||
fi
|
||||
chassis_serial=" ${C1}serial$SEP3${C2} $chassis_serial"
|
||||
if [[ -n "$chassis_vendor$chassis_type$chassis_version$chassis_serial" ]];then
|
||||
chassis_line="${C1}Chassis$SEP3${C2}$chassis_vendor$chassis_type$chassis_version$chassis_serial"
|
||||
fi
|
||||
|
@ -13899,9 +13915,16 @@ print_machine_data()
|
|||
if [[ -n ${A_MACHINE_DATA[7]} ]];then
|
||||
mobo_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[7]}"
|
||||
fi
|
||||
if [[ -n ${A_MACHINE_DATA[8]} && $B_OUTPUT_FILTER != 'true' ]];then
|
||||
mobo_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[8]}"
|
||||
if [[ -n ${A_MACHINE_DATA[8]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
mobo_serial=$FILTER_STRING
|
||||
else
|
||||
mobo_serial=${A_MACHINE_DATA[8]}
|
||||
fi
|
||||
else
|
||||
mobo_serial='N/A'
|
||||
fi
|
||||
mobo_serial=" ${C1}serial$SEP3${C2} $mobo_serial"
|
||||
if [[ -n ${A_MACHINE_DATA[9]} ]];then
|
||||
bios_vendor=${A_MACHINE_DATA[9]}
|
||||
else
|
||||
|
@ -13944,9 +13967,16 @@ print_machine_data()
|
|||
if [[ -n ${A_MACHINE_DATA[2]} ]];then
|
||||
product_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[2]}"
|
||||
fi
|
||||
if [[ -n ${A_MACHINE_DATA[3]} && $B_OUTPUT_FILTER != 'true' ]];then
|
||||
product_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[3]} "
|
||||
if [[ -n ${A_MACHINE_DATA[3]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
product_serial=$FILTER_STRING
|
||||
else
|
||||
product_serial=${A_MACHINE_DATA[3]}
|
||||
fi
|
||||
else
|
||||
product_serial='N/A'
|
||||
fi
|
||||
product_serial=" ${C1}serial$SEP3${C2} $product_serial "
|
||||
system_line="${C1}Device$SEP3${C2} $device ${C1}System$SEP3${C2} $system_vendor ${C1}product$SEP3${C2} $product_name$product_version$product_serial"
|
||||
calculate_line_length "$system_line$chassis_line"
|
||||
if [[ -n $chassis_line && $LINE_LENGTH -lt $COLS_INNER ]];then
|
||||
|
@ -15262,12 +15292,15 @@ print_ram_data()
|
|||
fi
|
||||
manufacturer="${C1}manufacturer$SEP3${C2} $manufacturer "
|
||||
if [[ -n ${a_memory_item[14]} ]];then
|
||||
if [[ $B_OUTPUT_FILTER == 'true' ]];then
|
||||
serial_nu=$FILTER_STRING
|
||||
else
|
||||
serial_nu=${a_memory_item[14]}
|
||||
fi
|
||||
else
|
||||
serial_nu='N/A'
|
||||
fi
|
||||
serial_nu="${C1}serial$SEP3${C2} $serial_nu "
|
||||
|
||||
if [[ $device_size != 'N/A' && -n ${a_memory_item[16]} ]];then
|
||||
bank_connection=" ${a_memory_item[16]}"
|
||||
fi
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
=====================================================================================
|
||||
Version: 2.3.35
|
||||
Patch Version: 00
|
||||
Script Date: 2017-08-11
|
||||
-----------------------------------
|
||||
Changes:
|
||||
-----------------------------------
|
||||
New version, new tarball. Fixed issue #120 where -z fails to anonymize serial numbers.
|
||||
|
||||
Also fixed a FreeBSD issue where I'd failed to update -G to show driver.
|
||||
|
||||
-----------------------------------
|
||||
-- Harald Hope - Fri, 11 Aug 2017 12:07:17 -0700
|
||||
|
||||
=====================================================================================
|
||||
Version: 2.3.34
|
||||
Patch Version: 00
|
||||
|
|
Loading…
Reference in a new issue