Trying a little test of the branches and other testing systems.

This commit is contained in:
inxi-svn 2008-11-13 23:16:49 +00:00
parent c915e76a34
commit eff986799b

19
inxi
View file

@ -103,6 +103,7 @@ B_CPU_FLAGS_FULL='false'
B_DEBUG_FLOOD='false'
# show extra output data
B_EXTRA_DATA='false'
B_SHOW_EXTRAS='false'
B_SHOW_DISK='false'
# override certain errors due to currupted data
B_HANDLE_CORRUPT_DATA='false'
@ -1805,6 +1806,9 @@ print_it_out()
if [[ $VERBOSITY_LEVEL -ge 4 || $B_SHOW_PARTITIONS == 'true' ]];then
print_hdd_partition_data
fi
if [[ $B_SHOW_EXTRAS == 'true' ]];then
print_extras_data
fi
if [[ $VERBOSITY_LEVEL -ge 1 || $B_SHOW_INFO == 'true' ]];then
print_info_data
fi
@ -2051,6 +2055,21 @@ print_cpu_flags_full()
fi
}
print_extras_data()
{
local extras_data='' ip=''
if [[ -n $( which lynx ) ]];then
ip=$( lynx -dump techpatterns.com/ip | awk -F 'is: ' '{print $2}' )
if [[ -z $ip ]];then
ip='N/A'
fi
extras_data=$( create_print_line "Extras:" "${C1}Wan IP:${C2} $ip" )
print_screen_output "$extras_data"
}
print_gfx_data()
{
local gfx_data='' i='' card_one='Card '