(change version)

Some last code cleanup, comment cleanup, tweaked a few small things.
This commit is contained in:
inxi-svn 2008-11-11 23:36:25 +00:00
parent 83a50c790a
commit 3061f80d1a

9
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.5.16 #### version: 0.5.17
#### Date: November 11 2008 #### Date: November 11 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif #### 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" ) 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() get_cpu_data()
{ {
local i='' j='' cpu_array_nu='' a_cpu_working='' multi_cpu='' local i='' j='' cpu_array_nu='' a_cpu_working='' multi_cpu=''
@ -1484,8 +1484,7 @@ get_hard_drive_data_advanced()
fi fi
IFS="$ORIGINAL_IFS" IFS="$ORIGINAL_IFS"
## then we'll loop through that array looking for matches. Note, with identical drives this will fail, sigh.. ## then we'll loop through that array looking for matches.
## for future use, that should be tightened up, but for now it's fine.
if [[ -n $( egrep 'sd[a-z]' <<< ${A_HDD_DATA[@]} ) ]];then 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... # 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 )" 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 if [[ $VERBOSITY_LEVEL -ge 1 || $B_SHOW_GRAPHICS == 'true' ]];then
print_gfx_data print_gfx_data
fi fi
if [[ $B_SHOW_AUDIO == 'true' ]];then if [[ $VERBOSITY_LEVEL -ge 5 || $B_SHOW_AUDIO == 'true' ]];then
print_audio_data print_audio_data
fi fi
if [[ $VERBOSITY_LEVEL -ge 2 || $B_SHOW_NETWORK == 'true' ]];then if [[ $VERBOSITY_LEVEL -ge 2 || $B_SHOW_NETWORK == 'true' ]];then