mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
debugger update, added distro version output files handling
This commit is contained in:
parent
976cb2998a
commit
c2b9faab04
11
inxi
11
inxi
|
@ -1573,7 +1573,7 @@ script_self_updater()
|
||||||
debug_data_collector()
|
debug_data_collector()
|
||||||
{
|
{
|
||||||
local xiin_app='' xiin_data_file='' xiin_download='' error='' b_run_xiin='false'
|
local xiin_app='' xiin_data_file='' xiin_download='' error='' b_run_xiin='false'
|
||||||
local debug_data_dir='' bsd_string='' xorg_d_files='' xorg_file=''
|
local debug_data_dir='' bsd_string='' xorg_d_files='' xorg_file='' a_distro_ids=''
|
||||||
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 )
|
||||||
|
@ -1624,6 +1624,15 @@ debug_data_collector()
|
||||||
# fdisk <disk>
|
# fdisk <disk>
|
||||||
dmidecode &> $debug_data_dir/dmidecode.txt
|
dmidecode &> $debug_data_dir/dmidecode.txt
|
||||||
|
|
||||||
|
if type -p shopt &>/dev/null;then
|
||||||
|
shopt -s nullglob;a_distro_ids=(/etc/*[-_]{release,version});shopt -u nullglob;echo ${a_distro_ids[@]} &> $debug_data_dir/etc-distro-files.txt
|
||||||
|
for distro_file in ${a_distro_ids[@]} /etc/issue
|
||||||
|
do
|
||||||
|
if [[ -f $distro_file ]];then
|
||||||
|
cat $distro_file &> $debug_data_dir/distro-file${distro_file//\//-}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
lscpu &> $debug_data_dir/lscpu.txt
|
lscpu &> $debug_data_dir/lscpu.txt
|
||||||
lspci &> $debug_data_dir/lspci.txt
|
lspci &> $debug_data_dir/lspci.txt
|
||||||
lspci -k &> $debug_data_dir/lspci-k.txt
|
lspci -k &> $debug_data_dir/lspci-k.txt
|
||||||
|
|
Loading…
Reference in a new issue