mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
made a mistake, used bash 4.0 method, fails on 3.2.
This commit is contained in:
parent
6394a16120
commit
7d7cfe1675
12
inxi
12
inxi
|
@ -815,8 +815,7 @@ main()
|
||||||
initialize_data()
|
initialize_data()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
BSD_VERSION=$( uname -s 2>/dev/null )
|
BSD_VERSION=$( uname -s 2>/dev/null | tr '[A-Z]' '[a-z]' )
|
||||||
BSD_VERSION=${BSD_VERSION,,}
|
|
||||||
# note: archbsd says they are a freebsd distro, so assuming it's the same as freebsd
|
# note: archbsd says they are a freebsd distro, so assuming it's the same as freebsd
|
||||||
if [[ -z ${BSD_VERSION/*bsd*/} ]];then
|
if [[ -z ${BSD_VERSION/*bsd*/} ]];then
|
||||||
# GNU/kfreebsd will by definition have GNU tools like sed/grep
|
# 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 completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming'
|
||||||
local Line='-------------------------'
|
local Line='-------------------------'
|
||||||
local start_directory=$( pwd )
|
local start_directory=$( pwd )
|
||||||
local host=$HOSTNAME
|
local host=$( tr '[A-Z]' '[a-z]' <<< "$HOSTNAME" )
|
||||||
if [[ -n $host ]];then
|
if [[ -n $host ]];then
|
||||||
host=${host// /-}
|
host=${host// /-}
|
||||||
host="-${host,,}"
|
|
||||||
else
|
else
|
||||||
host="-no-host"
|
host="-no-host"
|
||||||
fi
|
fi
|
||||||
|
@ -2872,7 +2870,7 @@ get_start_client()
|
||||||
Irc_Client_Path=$( readlink /proc/$PPID/exe )
|
Irc_Client_Path=$( readlink /proc/$PPID/exe )
|
||||||
# Irc_Client_Path=$( ps -p $PPID | gawk '!/[[:space:]]*PID/ {print $5}' )
|
# Irc_Client_Path=$( ps -p $PPID | gawk '!/[[:space:]]*PID/ {print $5}' )
|
||||||
# echo $( ps -p $PPID )
|
# 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##*/}
|
App_Working_Name=${irc_client_path_lower##*/}
|
||||||
# handles the xchat/sh/bash/dash cases, and the konversation/perl cases, where clients
|
# 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
|
# 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' )"
|
pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/[[:space:]]//g' )"
|
||||||
if [[ -n $pppid && -f /proc/$pppid/exe ]];then
|
if [[ -n $pppid && -f /proc/$pppid/exe ]];then
|
||||||
Irc_Client_Path="$( readlink /proc/$pppid/exe )"
|
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##*/}
|
App_Working_Name=${irc_client_path_lower##*/}
|
||||||
B_Non_Native_App='true'
|
B_Non_Native_App='true'
|
||||||
fi
|
fi
|
||||||
|
@ -10240,7 +10238,7 @@ print_module_version()
|
||||||
if [[ -z $( grep -E '^snd' <<< $modules ) ]];then
|
if [[ -z $( grep -E '^snd' <<< $modules ) ]];then
|
||||||
prefix='snd_' # sound modules start with snd_
|
prefix='snd_' # sound modules start with snd_
|
||||||
fi
|
fi
|
||||||
modules=${modules,,}
|
modules=$( tr '[A-Z]' '[a-z]' <<< "$modules" )
|
||||||
modules=${modules//-/_}
|
modules=${modules//-/_}
|
||||||
# special intel processing, generally no version info though
|
# special intel processing, generally no version info though
|
||||||
if [[ $modules == 'hda intel' ]];then
|
if [[ $modules == 'hda intel' ]];then
|
||||||
|
|
Loading…
Reference in a new issue