mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added to -S as -x option, kernel gcc version
This commit is contained in:
parent
1635966093
commit
3ac997b887
18
inxi
18
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.7.1
|
#### version: 1.7.2
|
||||||
#### Date: June 17 2011
|
#### Date: June 17 2011
|
||||||
#### Patch Number: 00
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -2119,7 +2119,7 @@ show_options()
|
||||||
print_screen_output " -d - Adds items to features line of optical drive; adds rev version to optical drive."
|
print_screen_output " -d - Adds items to features line of optical drive; adds rev version to optical drive."
|
||||||
print_screen_output " -N -A - Adds version/port(s)/driver version (if available) for Network/Audio;"
|
print_screen_output " -N -A - Adds version/port(s)/driver version (if available) for Network/Audio;"
|
||||||
print_screen_output " -N -A -G - Network, audio, graphics, shows PCI Bus ID/Usb ID number of card;"
|
print_screen_output " -N -A -G - Network, audio, graphics, shows PCI Bus ID/Usb ID number of card;"
|
||||||
print_screen_output " -S - Desktop toolkit if avaliable (GNOME/XFCE/KDE only)"
|
print_screen_output " -S - Desktop toolkit if avaliable (GNOME/XFCE/KDE only); Kernel gcc version"
|
||||||
print_screen_output " -G - Direct rendering status for Graphics (in X)."
|
print_screen_output " -G - Direct rendering status for Graphics (in X)."
|
||||||
print_screen_output " -G - (for single gpu, nvidia driver) screen number gpu is running on."
|
print_screen_output " -G - (for single gpu, nvidia driver) screen number gpu is running on."
|
||||||
print_screen_output " -D - Hdd temp with disk data if you have hddtemp installed, if you are root OR if you have added to"
|
print_screen_output " -D - Hdd temp with disk data if you have hddtemp installed, if you are root OR if you have added to"
|
||||||
|
@ -3415,6 +3415,12 @@ get_distro_lsb_data()
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_gcc_version()
|
||||||
|
{
|
||||||
|
local gccVersion=$( grep -Eio 'gcc[[:space:]]*version[[:space:]]*([0-9\.]+)' /proc/version 2>/dev/null | grep -Eo '([0-9\.]+)' )
|
||||||
|
echo $gccVersion
|
||||||
|
}
|
||||||
|
|
||||||
get_gpu_temp_data()
|
get_gpu_temp_data()
|
||||||
{
|
{
|
||||||
local gpu_temp='' gpu_fan='' screens='' screen_nu='' gpu_temp_looper=''
|
local gpu_temp='' gpu_fan='' screens='' screen_nu='' gpu_temp_looper=''
|
||||||
|
@ -7354,7 +7360,13 @@ print_system_data()
|
||||||
host_string="${C1}Host${C2} $host_name "
|
host_string="${C1}Host${C2} $host_name "
|
||||||
system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" )
|
system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" )
|
||||||
fi
|
fi
|
||||||
host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel $bits "
|
if [[ $B_EXTRA_DATA == 'true' ]];then
|
||||||
|
gcc_string=$( get_gcc_version )
|
||||||
|
if [[ -n $gcc_string ]];then
|
||||||
|
gcc_string=" ${C1}gcc${C2} $gcc_string"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel $bits$gcc_string "
|
||||||
|
|
||||||
if [[ $( wc -c <<< "$host_kernel_string$de_distro_string" ) -lt $line_max ]];then
|
if [[ $( wc -c <<< "$host_kernel_string$de_distro_string" ) -lt $line_max ]];then
|
||||||
system_data="$host_kernel_string$de_distro_string"
|
system_data="$host_kernel_string$de_distro_string"
|
||||||
|
|
Loading…
Reference in a new issue