diff --git a/inxi b/inxi index 5caace4..df84c60 100755 --- a/inxi +++ b/inxi @@ -5547,6 +5547,7 @@ get_hard_drive_data_advanced() eval $LOGFS local a_temp_working='' a_temp_scsi='' temp_holder='' temp_name='' i='' j='' local sd_ls_by_id='' ls_disk_by_id='' ls_disk_by_path='' usb_exists='' a_temp='' + local firewire_exists='' thunderbolt_exists='' ## check for all ide type drives, non libata, only do it if hdx is in array ## this is now being updated for new /sys type paths, this may handle that ok too @@ -5652,8 +5653,9 @@ get_hard_drive_data_advanced() if [[ -z $temp_name ]];then temp_name="Name n/a" # maybe remove this from the conditional, detection of usb may not depend on the name - else + else # usb_exists=$( grep -Em1 "usb-.*$temp_name.*${a_temp_working[0]}$" <<< "$ls_disk_by_id" ) + firewire_exists=$( grep -Em1 "ieee1394-.*$temp_name.*${a_temp_working[0]}$" <<< "$ls_disk_by_id" ) # note: sometimes with wwn- numbering usb does not appear in by-id but it does in by-path if [[ -z $usb_exists ]];then usb_exists=$( grep -Em1 "usb-.*${a_temp_working[0]}$" <<< "$ls_disk_by_path" ) @@ -5661,6 +5663,12 @@ get_hard_drive_data_advanced() if [[ -n $usb_exists ]];then a_temp_working[3]='USB' fi + if [[ -z $firewire_exists ]];then + firewire_exists=$( grep -Em1 "ieee1394-.*${a_temp_working[0]}$" <<< "$ls_disk_by_path" ) + fi + if [[ -n $firewire_exists ]];then + a_temp_working[3]='FireWire' + fi fi a_temp_working[2]=$temp_name # these loops are to easily extend the cpu array created in the gawk script above with more fields per cpu.