new version/tarball. Tiny fix in debugger, it turns out that in some systems, the command:

strings --version used in the debugger results in a hang, which you can duplicate with:
strings 
alone, without any argument or info, that will hang too, so I assume if the system doesn't
have the --version parameter, strings ignores that, and basically just does what it would do
with no option, hang.

Thanks for user ypharis persistence in tracking down this issue. So far only appeared on slackware
based distros, but since the debugger should 'just work', removing the version test.
This commit is contained in:
inxi-svn 2014-04-01 00:52:57 +00:00
parent 1ed6348436
commit 11f1097d01
2 changed files with 31 additions and 3 deletions

14
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### Version: 2.1.13 #### Version: 2.1.14
#### Date: 2014-03-30 #### Date: 2014-03-31
#### Patch Number: 00 #### Patch Number: 00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -1599,7 +1599,15 @@ debug_data_collector()
systemctl list-units --type=target &> $debug_data_dir/systemctl-list-units-target.txt systemctl list-units --type=target &> $debug_data_dir/systemctl-list-units-target.txt
initctl list &> $debug_data_dir/initctl-list.txt initctl list &> $debug_data_dir/initctl-list.txt
sensors &> $debug_data_dir/sensors.txt sensors &> $debug_data_dir/sensors.txt
strings --version &> $debug_data_dir/strings.txt if type -p strings &>/dev/null;then
touch $debug_data_dir/strings-present
else
touch $debug_data_dir/strings-absent
fi
# leaving this commented out to remind that some systems do not
# support strings --version, but will just simply hang at that command
# which you can duplicate by simply typing: strings then hitting enter, you will get hang.
# strings --version &> $debug_data_dir/strings.txt
if type -p nvidia-smi &>/dev/null;then if type -p nvidia-smi &>/dev/null;then
nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt
nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt

View file

@ -1,3 +1,23 @@
=====================================================================================
Version: 2.1.14
Patch Version: 00
Script Date: 2014-03-31
-----------------------------------
Changes:
-----------------------------------
new version/tarball. Tiny fix in debugger, it turns out that in some systems, the command:
strings --version used in the debugger results in a hang, which you can duplicate with:
strings
alone, without any argument or info, that will hang too, so I assume if the system doesn't
have the --version parameter, strings ignores that, and basically just does what it would do
with no option, hang.
Thanks for user ypharis persistence in tracking down this issue. So far only appeared on slackware
based distros, but since the debugger should 'just work', removing the version test.
-----------------------------------
-- Harald Hope - Mon, 31 Mar 2014 17:49:48 -0700
===================================================================================== =====================================================================================
Version: 2.1.13 Version: 2.1.13
Patch Version: 00 Patch Version: 00