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:
Harald Hope 2017-08-11 12:09:15 -07:00
parent df3a735ac2
commit fd13a1efde
2 changed files with 61 additions and 14 deletions

55
inxi
View file

@ -2,8 +2,8 @@
######################################################################## ########################################################################
SELF_NAME='inxi' SELF_NAME='inxi'
# don't quote the following, parsers grab these too # don't quote the following, parsers grab these too
SELF_VERSION=2.3.34 SELF_VERSION=2.3.35
SELF_DATE=2017-08-04 SELF_DATE=2017-08-11
SELF_PATCH=00 SELF_PATCH=00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -9651,7 +9651,7 @@ get_pciconf_card_data()
A_AUDIO_DATA[j]=$array_string A_AUDIO_DATA[j]=$array_string
;; ;;
display) 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 A_GRAPHICS_CARD_DATA[j]=$array_string
;; ;;
network) network)
@ -12745,7 +12745,11 @@ print_battery_data()
fi fi
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
if [[ -n ${a_battery_working[16]} ]];then if [[ -n ${a_battery_working[16]} ]];then
if [[ $B_OUTPUT_FILTER == 'true' ]];then
serial=$FILTER_STRING
else
serial="${a_battery_working[16]} " serial="${a_battery_working[16]} "
fi
else else
serial='N/A ' serial='N/A '
fi fi
@ -13554,8 +13558,13 @@ print_hard_disk_data()
fi fi
fi fi
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then 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]} hdd_serial=${a_hdd_working[4]}
if [[ -z $hdd_serial ]];then fi
else
hdd_serial='N/A' hdd_serial='N/A'
fi fi
hdd_serial="${C1}serial$SEP3${C2} $hdd_serial " hdd_serial="${C1}serial$SEP3${C2} $hdd_serial "
@ -13874,9 +13883,16 @@ print_machine_data()
if [[ -n ${A_MACHINE_DATA[14]} ]];then if [[ -n ${A_MACHINE_DATA[14]} ]];then
chassis_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[14]}" chassis_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[14]}"
fi fi
if [[ -n ${A_MACHINE_DATA[15]} && $B_OUTPUT_FILTER != 'true' ]];then if [[ -n ${A_MACHINE_DATA[15]} ]];then
chassis_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[15]}" if [[ $B_OUTPUT_FILTER == 'true' ]];then
chassis_serial=$FILTER_STRING
else
chassis_serial=${A_MACHINE_DATA[15]}
fi 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 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" chassis_line="${C1}Chassis$SEP3${C2}$chassis_vendor$chassis_type$chassis_version$chassis_serial"
fi fi
@ -13899,9 +13915,16 @@ print_machine_data()
if [[ -n ${A_MACHINE_DATA[7]} ]];then if [[ -n ${A_MACHINE_DATA[7]} ]];then
mobo_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[7]}" mobo_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[7]}"
fi fi
if [[ -n ${A_MACHINE_DATA[8]} && $B_OUTPUT_FILTER != 'true' ]];then if [[ -n ${A_MACHINE_DATA[8]} ]];then
mobo_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[8]}" if [[ $B_OUTPUT_FILTER == 'true' ]];then
mobo_serial=$FILTER_STRING
else
mobo_serial=${A_MACHINE_DATA[8]}
fi fi
else
mobo_serial='N/A'
fi
mobo_serial=" ${C1}serial$SEP3${C2} $mobo_serial"
if [[ -n ${A_MACHINE_DATA[9]} ]];then if [[ -n ${A_MACHINE_DATA[9]} ]];then
bios_vendor=${A_MACHINE_DATA[9]} bios_vendor=${A_MACHINE_DATA[9]}
else else
@ -13944,9 +13967,16 @@ print_machine_data()
if [[ -n ${A_MACHINE_DATA[2]} ]];then if [[ -n ${A_MACHINE_DATA[2]} ]];then
product_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[2]}" product_version=" ${C1}v$SEP3${C2} ${A_MACHINE_DATA[2]}"
fi fi
if [[ -n ${A_MACHINE_DATA[3]} && $B_OUTPUT_FILTER != 'true' ]];then if [[ -n ${A_MACHINE_DATA[3]} ]];then
product_serial=" ${C1}serial$SEP3${C2} ${A_MACHINE_DATA[3]} " if [[ $B_OUTPUT_FILTER == 'true' ]];then
product_serial=$FILTER_STRING
else
product_serial=${A_MACHINE_DATA[3]}
fi 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" 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" calculate_line_length "$system_line$chassis_line"
if [[ -n $chassis_line && $LINE_LENGTH -lt $COLS_INNER ]];then if [[ -n $chassis_line && $LINE_LENGTH -lt $COLS_INNER ]];then
@ -15262,12 +15292,15 @@ print_ram_data()
fi fi
manufacturer="${C1}manufacturer$SEP3${C2} $manufacturer " manufacturer="${C1}manufacturer$SEP3${C2} $manufacturer "
if [[ -n ${a_memory_item[14]} ]];then if [[ -n ${a_memory_item[14]} ]];then
if [[ $B_OUTPUT_FILTER == 'true' ]];then
serial_nu=$FILTER_STRING
else
serial_nu=${a_memory_item[14]} serial_nu=${a_memory_item[14]}
fi
else else
serial_nu='N/A' serial_nu='N/A'
fi fi
serial_nu="${C1}serial$SEP3${C2} $serial_nu " serial_nu="${C1}serial$SEP3${C2} $serial_nu "
if [[ $device_size != 'N/A' && -n ${a_memory_item[16]} ]];then if [[ $device_size != 'N/A' && -n ${a_memory_item[16]} ]];then
bank_connection=" ${a_memory_item[16]}" bank_connection=" ${a_memory_item[16]}"
fi fi

View file

@ -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 Version: 2.3.34
Patch Version: 00 Patch Version: 00