diff --git a/inxi b/inxi index 193ef7e..f586499 100755 --- a/inxi +++ b/inxi @@ -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 '