New version, new tarball. Added some critical debugger tools for ongoing issue # 128

ARM data collection in /sys.

Using 'tree' now instead of ls if it is installed for debugger /sys tree listing.
Added to recommends. Updated bluetooth recommends to note it's dev only. That
should fix issue #127
This commit is contained in:
Harald Hope 2017-11-21 10:41:48 -08:00
parent 4a4c58769c
commit d1ff06d733
2 changed files with 39 additions and 10 deletions

31
inxi
View file

@ -2,8 +2,8 @@
######################################################################## ########################################################################
SELF_NAME='inxi' SELF_NAME='inxi'
# don't quote the following, parsers grab these too # don't quote the following, parsers grab these too
SELF_VERSION=2.3.43 SELF_VERSION=2.3.44
SELF_DATE=2017-10-31 SELF_DATE=2017-11-21
SELF_PATCH=00 SELF_PATCH=00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -2173,10 +2173,7 @@ debug_data_collector()
echo $Line echo $Line
sys_data_file=$SELF_DATA_DIR/$Debug_Data_Dir/sys-dir-traverse.txt sys_data_file=$SELF_DATA_DIR/$Debug_Data_Dir/sys-dir-traverse.txt
echo "Getting file paths in /sys..." echo "Getting file paths in /sys..."
ls_sys 1 sys_tree
ls_sys 2
ls_sys 3
ls_sys 4
# note, this generates more lines than the full sys parsing, so only use if required # note, this generates more lines than the full sys parsing, so only use if required
# ls_sys 5 # ls_sys 5
touch $sys_data_file touch $sys_data_file
@ -2202,7 +2199,9 @@ debug_data_collector()
return if $File::Find::name =~ /\/(\.[a-z]|__|parameters\/|debug\/)/; return if $File::Find::name =~ /\/(\.[a-z]|__|parameters\/|debug\/)/;
# comment this one out if you experience hangs or if # comment this one out if you experience hangs or if
# we discover syntax of foreign language characters # we discover syntax of foreign language characters
return unless -T; # Must be ascii like # Must be ascii like. This is questionable and might require further
# investigation, it is removing some characters that we might want
return unless -T;
# print $File::Find::name . "\n"; # print $File::Find::name . "\n";
push @content, $File::Find::name; push @content, $File::Find::name;
return; return;
@ -2290,6 +2289,17 @@ debug_data_collector()
fi fi
exit 0 exit 0
} }
sys_tree()
{
if type -p tree &>/dev/null;then
tree -a -L 10 /sys > $Debug_Data_Dir/sys-tree-10.txt
else
ls_sys 1
ls_sys 2
ls_sys 3
ls_sys 4
fi
}
## args: $1 - depth ## args: $1 - depth
ls_sys() ls_sys()
{ {
@ -2320,7 +2330,7 @@ ls_sys()
else if (!/^total / ) { else if (!/^total / ) {
print $0 print $0
} }
}' &> $Debug_Data_Dir/sys-dir-depth-$1.txt }' &> $Debug_Data_Dir/sys-ls-$1.txt
} }
## args: $1 - debugger file name ## args: $1 - debugger file name
@ -2388,7 +2398,7 @@ check_recommends_user_output()
echo $Line echo $Line
echo "Bash version: $( bash --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU bash/ {print $4}' )" echo "Bash version: $( bash --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU bash/ {print $4}' )"
if type -p gawk &>/dev/null;then if type -p gawk &>/dev/null;then
gawk_version=$( gawk --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU Awk/ {print $3}' ) gawk_version=$( gawk --version 2>&1 | gawk 'BEGIN {IGNORECASE=1} /^GNU Awk/ {print $3}' )
fi fi
if type -p sed &>/dev/null;then if type -p sed &>/dev/null;then
# sed (GNU sed) 4.4 OR GNU sed version 4.4 # sed (GNU sed) 4.4 OR GNU sed version 4.4
@ -2486,7 +2496,7 @@ check_recommends_items()
dig:dnsutils~dnsutils~bind-utils:-i_first_wlan_ip_default_test dig:dnsutils~dnsutils~bind-utils:-i_first_wlan_ip_default_test
dmidecode:dmidecode~dmidecode~dmidecode~:-M_if_no_sys_machine_data;_-m_memory dmidecode:dmidecode~dmidecode~dmidecode~:-M_if_no_sys_machine_data;_-m_memory
file:file~file~file~:-o_unmounted_file_system file:file~file~file~:-o_unmounted_file_system
hciconfig:bluez~bluez-utils~bluez-utils~:-n_-i_bluetooth_data hciconfig:bluez~bluez-utils~bluez-utils~:-n_-i_bluetooth_data-dev_only-not_used
hddtemp:hddtemp~hddtemp~hddtemp~:-Dx_show_hdd_temp hddtemp:hddtemp~hddtemp~hddtemp~:-Dx_show_hdd_temp
ifconfig:net-tools~net-tools~net-tools~:-i_ip_lan-deprecated ifconfig:net-tools~net-tools~net-tools~:-i_ip_lan-deprecated
ip:iproute~iproute2~iproute~:-i_ip_lan ip:iproute~iproute2~iproute~:-i_ip_lan
@ -2496,6 +2506,7 @@ check_recommends_items()
modinfo:module-init-tools~module-init-tools~module-init-tools~:-Ax,-Nx_module_version modinfo:module-init-tools~module-init-tools~module-init-tools~:-Ax,-Nx_module_version
runlevel:sysvinit~sysvinit~systemd~:-I_runlevel runlevel:sysvinit~sysvinit~systemd~:-I_runlevel
sudo:sudo~sudo~sudo~:-Dx_hddtemp-user;-o_file-user sudo:sudo~sudo~sudo~:-Dx_hddtemp-user;-o_file-user
tree:tree~tree~tree~:-@1[1-5]_debugger_sys_tree
uptime:procps~procps~procps~:-I_uptime_(check_which_package_owns_Debian) uptime:procps~procps~procps~:-I_uptime_(check_which_package_owns_Debian)
' '

View file

@ -1,3 +1,21 @@
=====================================================================================
Version: 2.3.44
Patch Version: 00
Script Date: 2017-11-21
-----------------------------------
Changes:
-----------------------------------
New version, new tarball. Added some critical debugger tools for ongoing issue # 128
ARM data collection in /sys.
Using 'tree' now instead of ls if it is installed for debugger /sys tree listing.
Added to recommends. Updated bluetooth recommends to note it's dev only. That
should fix issue #127
-----------------------------------
-- Harald Hope - Tue, 21 Nov 2017 10:35:34 -0800
===================================================================================== =====================================================================================
Version: 2.3.43 Version: 2.3.43
Patch Version: 00 Patch Version: 00