This commit is contained in:
inxi-svn 2011-05-25 21:39:38 +00:00
parent 559c595a18
commit 95ecf17ded

5
inxi
View file

@ -6318,7 +6318,7 @@ print_system_data()
local host_name=$( hostname ) local host_name=$( hostname )
local current_kernel=$( uname -rm ) # | gawk '{print $1,$3,$(NF-1)}' ) local current_kernel=$( uname -rm ) # | gawk '{print $1,$3,$(NF-1)}' )
local distro="$( get_distro_data )" local distro="$( get_distro_data )"
local tty_session=$( basename $(tty) | sed 's/[^0-9]*//g' ) local tty_session=$( basename "$( tty 2>/dev/null )" | sed 's/[^0-9]*//g' )
# this handles the different, shorter, irc colors strings embedded in variable data # this handles the different, shorter, irc colors strings embedded in variable data
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
@ -6336,6 +6336,9 @@ print_system_data()
desktop_environment='N/A' desktop_environment='N/A'
fi fi
else else
if [[ -n $tty_session ]];then
tty_session=" $tty_session"
fi
desktop_environment="tty$tty_session" desktop_environment="tty$tty_session"
desktop_type='Console' desktop_type='Console'
fi fi