mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
more debugger fine tuning
This commit is contained in:
parent
a08f5986e2
commit
683902e148
10
inxi
10
inxi
|
@ -1530,7 +1530,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=''
|
local debug_data_dir='' bsd_string='' xorg_d_files='' xorg_file=''
|
||||||
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 )
|
||||||
|
@ -1673,13 +1673,17 @@ debug_data_collector()
|
||||||
touch $debug_data_dir/no-xorg-log-file
|
touch $debug_data_dir/no-xorg-log-file
|
||||||
fi
|
fi
|
||||||
if [[ -e /etc/X11/xorg.conf ]];then
|
if [[ -e /etc/X11/xorg.conf ]];then
|
||||||
cp /etc/X11/xorg.conf $SCRIPT_DATA_DIR/$debug_data_dir
|
cat /etc/X11/xorg.conf &> $debug_data_dir/xorg-conf.txt
|
||||||
else
|
else
|
||||||
touch $debug_data_dir/no-xorg-conf-file
|
touch $debug_data_dir/no-xorg-conf-file
|
||||||
fi
|
fi
|
||||||
if [[ -n $( ls /etc/X11/xorg.conf.d/ 2>/dev/null ) ]];then
|
if [[ -n $( ls /etc/X11/xorg.conf.d/ 2>/dev/null ) ]];then
|
||||||
ls /etc/X11/xorg.conf.d &> $debug_data_dir/ls-etc-x11-xorg-conf-d.txt
|
ls /etc/X11/xorg.conf.d &> $debug_data_dir/ls-etc-x11-xorg-conf-d.txt
|
||||||
cp /etc/X11/xorg.conf.d $SCRIPT_DATA_DIR/$debug_data_dir
|
xorg_d_files=$(ls /etc/X11/xorg.conf.d)
|
||||||
|
for xorg_file in $xorg_d_files
|
||||||
|
do
|
||||||
|
cat /etc/X11/xorg.conf.d/$xorg_file &> $debug_data_dir/xorg-conf-d-$xorg_file.txt
|
||||||
|
done
|
||||||
else
|
else
|
||||||
touch $debug_data_dir/no-xorg-conf-d-files
|
touch $debug_data_dir/no-xorg-conf-d-files
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue