diff --git a/inxi b/inxi index cc5b0a5..1409e0a 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.10.4 -#### Date: 6 February 2009 +#### version: 1.0.0 +#### Date: 11 February 2009 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -78,6 +78,7 @@ #### All variables MUST be initialized / declared explicitly ####, globals UPPER CASE, at top of script, SOME_VARIABLE='' (words separated by _ ). #### Locals always with: local some_variable= (lower case, words separated by _ ) +#### Locals that will be inherited by child functions: Some_Variable (so you know they are inherited) #### and at the top of the function. #### #### Booleans should start with b_ or B_ and state clearly what is being tested @@ -236,8 +237,8 @@ shopt -u nullglob # Backup the current Internal Field Separator ORIGINAL_IFS="$IFS" # These two determine separators in single line output, to force irc clients not to break off sections -FL1='-' -FL2='' +SEP1='-' +SEP2='~' ### Script names/paths SCRIPT_NAME="inxi" @@ -1267,7 +1268,7 @@ get_audio_data() IFS=$'\n' # this first step handles the drivers for cases where the second step fails to find one - device_count=$( echo "$lspci_data" | egrep -ic '(multimedia audio controller|audio device)' ) + device_count=$( echo "$Lspci_Data" | egrep -ic '(multimedia audio controller|audio device)' ) if [[ $device_count -eq 1 ]] && [[ $B_ASOUND_CARDS == 'true' ]];then alsa_driver=$( gawk -F ']: ' ' BEGIN { @@ -1289,7 +1290,7 @@ get_audio_data() alsa_driver=$( echo $alsa_driver ) # now we'll build the main audio data, card name, driver, and port. If no driver is found, # and if the first method above is not null, and one card is found, it will use that instead. - A_AUDIO_DATA=( $( echo "$lspci_data" | gawk -F ': ' -v alsaDriver="$alsa_driver" ' + A_AUDIO_DATA=( $( echo "$Lspci_Data" | gawk -F ': ' -v alsaDriver="$alsa_driver" ' BEGIN { IGNORECASE=1 } @@ -1769,7 +1770,7 @@ get_graphics_card_data() local i='' IFS=$'\n' - A_GFX_CARD_DATA=( $( echo "$lspci_data" | gawk -F': ' ' + A_GFX_CARD_DATA=( $( echo "$Lspci_Data" | gawk -F': ' ' BEGIN { IGNORECASE=1 } @@ -1791,7 +1792,7 @@ get_graphics_card_data() fi # GFXMEM is UNUSED at the moment, because it shows AGP aperture size, which is not necessarily equal to GFX memory.. - # GFXMEM="size=[$(echo "$lspci_data" | gawk '/VGA/{while (!/^$/) {getline;if (/size=[0-9][0-9]*M/) {size2=gensub(/.*\[size=([0-9]+)M\].*/,"\\1","g",$0);if (size