mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
cleanup
This commit is contained in:
parent
f8e193103d
commit
f027067ddf
9
inxi
9
inxi
|
@ -803,7 +803,7 @@ set_calculated_variables()
|
||||||
get_audio_data()
|
get_audio_data()
|
||||||
{
|
{
|
||||||
local i=''
|
local i=''
|
||||||
tt='nvidia'
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
A_AUDIO_DATA=( $( echo "$lspci_data" | gawk -F': ' '
|
A_AUDIO_DATA=( $( echo "$lspci_data" | gawk -F': ' '
|
||||||
{ IGNORECASE=1 }
|
{ IGNORECASE=1 }
|
||||||
|
@ -1189,7 +1189,8 @@ get_hard_drive_data()
|
||||||
}
|
}
|
||||||
' /proc/scsi/scsi))
|
' /proc/scsi/scsi))
|
||||||
IFS="$ORIGINAL_IFS"
|
IFS="$ORIGINAL_IFS"
|
||||||
|
|
||||||
|
## note: the output part of this should be in the print hdd data function, not here
|
||||||
for (( i=0; i < ${#a_total_hdd[@]}; i++ ))
|
for (( i=0; i < ${#a_total_hdd[@]}; i++ ))
|
||||||
do
|
do
|
||||||
# this adds the (x) numbering in front of each disk found, and creates the full disk string
|
# this adds the (x) numbering in front of each disk found, and creates the full disk string
|
||||||
|
@ -1250,8 +1251,8 @@ get_hard_drive_data()
|
||||||
get_lspci_data()
|
get_lspci_data()
|
||||||
{
|
{
|
||||||
echo "$( lspci -v | awk '{
|
echo "$( lspci -v | awk '{
|
||||||
gsub(/\(prog-if[^)]*\)/,"")
|
gsub(/\(prog-if[^)]*\)/,"")
|
||||||
print
|
print
|
||||||
}' )"
|
}' )"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue