From 3061f80d1ab5fa797a94b8bd3ca9393ebecb55b6 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 11 Nov 2008 23:36:25 +0000 Subject: [PATCH] (change version) Some last code cleanup, comment cleanup, tweaked a few small things. --- inxi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/inxi b/inxi index 61885b1..a16f907 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.5.16 +#### version: 0.5.17 #### Date: November 11 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -998,7 +998,7 @@ get_cpu_core_count() A_CPU_CORE_DATA=( "$cpu_core_count" "$cpu_alpha_count Core" ) } -## working, will be replaced by new trash80 stuff +## main cpu data collector get_cpu_data() { local i='' j='' cpu_array_nu='' a_cpu_working='' multi_cpu='' @@ -1484,8 +1484,7 @@ get_hard_drive_data_advanced() fi IFS="$ORIGINAL_IFS" - ## then we'll loop through that array looking for matches. Note, with identical drives this will fail, sigh.. - ## for future use, that should be tightened up, but for now it's fine. + ## then we'll loop through that array looking for matches. if [[ -n $( egrep 'sd[a-z]' <<< ${A_HDD_DATA[@]} ) ]];then # first pack the main ls variable so we don't have to keep using ls /dev... ls_disk_by_id="$( ls -l /dev/disk/by-id )" @@ -1743,7 +1742,7 @@ print_it_out() if [[ $VERBOSITY_LEVEL -ge 1 || $B_SHOW_GRAPHICS == 'true' ]];then print_gfx_data fi - if [[ $B_SHOW_AUDIO == 'true' ]];then + if [[ $VERBOSITY_LEVEL -ge 5 || $B_SHOW_AUDIO == 'true' ]];then print_audio_data fi if [[ $VERBOSITY_LEVEL -ge 2 || $B_SHOW_NETWORK == 'true' ]];then