mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 17:07:49 +00:00
added inxi output to debugger data files
This commit is contained in:
parent
be3461b3ad
commit
d10e6ec05e
5
inxi
5
inxi
|
@ -1252,7 +1252,7 @@ script_self_updater()
|
|||
# args: $1 - debug data type: sys|xorg|disk
|
||||
debug_data_collector()
|
||||
{
|
||||
local xiin_app='' xiin_data_file='' xiin_download=''
|
||||
local xiin_app='' xiin_data_file='' xiin_download='' inxi_args=''
|
||||
local xiin_data_dir="xiin-$(hostname | tr ' ' '-' | tr '[A-Z]' '[a-z]' )-$1-$(date +%Y%m%d)"
|
||||
|
||||
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
||||
|
@ -1361,8 +1361,11 @@ debug_data_collector()
|
|||
cat $FILE_PARTITIONS &> $xiin_data_dir/proc-partitions.txt
|
||||
cat $FILE_SCSI &> $xiin_data_dir/proc-scsi.txt
|
||||
cat $FILE_MOUNTS &> $xiin_data_dir/proc-mounts.txt
|
||||
inxi_args='pluo'
|
||||
;;
|
||||
esac
|
||||
echo 'Creating inxi output file now. This can take a few seconds...'
|
||||
$SCRIPT_NAME -F $inxi_args -c 0 > $xiin_data_dir/inxi-F${inxi_args}.txt
|
||||
|
||||
echo 'Creating tar.gz compressed file of this material now. Contents:'
|
||||
echo '-------------------------'
|
||||
|
|
Loading…
Reference in a new issue