mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Updated to 0.5.28
This commit is contained in:
parent
52829c43c7
commit
2a7b3976cd
10
inxi
10
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.5.27-b-1-t-3
|
#### version: 0.5.28-b-1-t-1
|
||||||
#### Date: November 13 2008
|
#### Date: November 13 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
||||||
|
@ -1023,7 +1023,7 @@ get_audio_data()
|
||||||
A_AUDIO_DATA[$alsa_index]=$( gawk '{
|
A_AUDIO_DATA[$alsa_index]=$( gawk '{
|
||||||
{ IGNORECASE=1 }
|
{ IGNORECASE=1 }
|
||||||
# some alsa strings have the build date in (...)
|
# some alsa strings have the build date in (...)
|
||||||
# alsa remove trailing .
|
# also remove trailing .
|
||||||
gsub( "Driver | [(].*[)]|\.$","",$0 )
|
gsub( "Driver | [(].*[)]|\.$","",$0 )
|
||||||
gsub(/,/, " ", $0)
|
gsub(/,/, " ", $0)
|
||||||
gsub(/^ +| +$/, "", $0)
|
gsub(/^ +| +$/, "", $0)
|
||||||
|
@ -1957,7 +1957,6 @@ print_audio_data()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print_cpu_data()
|
print_cpu_data()
|
||||||
{
|
{
|
||||||
local cpu_data='' i='' cpu_clock_speed='' cpu_multi_clock_data=''
|
local cpu_data='' i='' cpu_clock_speed='' cpu_multi_clock_data=''
|
||||||
|
@ -2086,7 +2085,10 @@ print_extras_data()
|
||||||
local extras_data='' ip=''
|
local extras_data='' ip=''
|
||||||
|
|
||||||
if [[ -n $( which lynx ) ]];then
|
if [[ -n $( which lynx ) ]];then
|
||||||
ip=$( lynx -dump techpatterns.com/ip | awk -F 'is: ' '{print $2}' )
|
ip=$( lynx -dump techpatterns.com/ip | awk -F 'is: ' '{
|
||||||
|
#gsub("\n","",$2")
|
||||||
|
print $2
|
||||||
|
}' )
|
||||||
fi
|
fi
|
||||||
if [[ -z $ip ]];then
|
if [[ -z $ip ]];then
|
||||||
ip='N/A'
|
ip='N/A'
|
||||||
|
|
Loading…
Reference in a new issue