made a mistake, used bash 4.0 method, fails on 3.2.

This commit is contained in:
inxi-svn 2014-03-28 07:00:17 +00:00
parent 6394a16120
commit 7d7cfe1675

12
inxi
View file

@ -815,8 +815,7 @@ main()
initialize_data()
{
eval $LOGFS
BSD_VERSION=$( uname -s 2>/dev/null )
BSD_VERSION=${BSD_VERSION,,}
BSD_VERSION=$( uname -s 2>/dev/null | tr '[A-Z]' '[a-z]' )
# note: archbsd says they are a freebsd distro, so assuming it's the same as freebsd
if [[ -z ${BSD_VERSION/*bsd*/} ]];then
# GNU/kfreebsd will by definition have GNU tools like sed/grep
@ -1541,10 +1540,9 @@ debug_data_collector()
local completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming'
local Line='-------------------------'
local start_directory=$( pwd )
local host=$HOSTNAME
local host=$( tr '[A-Z]' '[a-z]' <<< "$HOSTNAME" )
if [[ -n $host ]];then
host=${host// /-}
host="-${host,,}"
else
host="-no-host"
fi
@ -2872,7 +2870,7 @@ get_start_client()
Irc_Client_Path=$( readlink /proc/$PPID/exe )
# Irc_Client_Path=$( ps -p $PPID | gawk '!/[[:space:]]*PID/ {print $5}' )
# echo $( ps -p $PPID )
irc_client_path_lower=${Irc_Client_Path,,}
irc_client_path_lower=$( tr '[A-Z]' '[a-z]' <<< $Irc_Client_Path )
App_Working_Name=${irc_client_path_lower##*/}
# handles the xchat/sh/bash/dash cases, and the konversation/perl cases, where clients
# report themselves as perl or unknown shell. IE: when konversation starts inxi
@ -2884,7 +2882,7 @@ get_start_client()
pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/[[:space:]]//g' )"
if [[ -n $pppid && -f /proc/$pppid/exe ]];then
Irc_Client_Path="$( readlink /proc/$pppid/exe )"
irc_client_path_lower=${Irc_Client_Path,,}
irc_client_path_lower=$( tr '[A-Z]' '[a-z]' <<< $Irc_Client_Path )
App_Working_Name=${irc_client_path_lower##*/}
B_Non_Native_App='true'
fi
@ -10240,7 +10238,7 @@ print_module_version()
if [[ -z $( grep -E '^snd' <<< $modules ) ]];then
prefix='snd_' # sound modules start with snd_
fi
modules=${modules,,}
modules=$( tr '[A-Z]' '[a-z]' <<< "$modules" )
modules=${modules//-/_}
# special intel processing, generally no version info though
if [[ $modules == 'hda intel' ]];then