From c2b9faab04b176756b26fe3ac115825064365a1c Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 1 May 2014 23:48:28 +0000 Subject: [PATCH] debugger update, added distro version output files handling --- inxi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 835b928..4724609 100755 --- a/inxi +++ b/inxi @@ -1573,7 +1573,7 @@ script_self_updater() debug_data_collector() { 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 Line='-------------------------' local start_directory=$( pwd ) @@ -1624,6 +1624,15 @@ debug_data_collector() # fdisk 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 lspci &> $debug_data_dir/lspci.txt lspci -k &> $debug_data_dir/lspci-k.txt