diff --git a/inxi b/inxi index 39c1f4d..f74af49 100755 --- a/inxi +++ b/inxi @@ -1550,7 +1550,7 @@ debug_data_collector() bsd_string="-$BSD_TYPE" fi - debug_data_dir="inxi$bsd_string$host-$(date +%Y%m%d-%H%M%S)-$1" + debug_data_dir="inxi$bsd_string-$host-$(date +%Y%m%d-%H%M%S)-$1" if [[ $B_IRC == 'false' ]];then if [[ -n $ALTERNATE_FTP ]];then @@ -1600,8 +1600,12 @@ debug_data_collector() initctl list &> $debug_data_dir/initctl-list.txt sensors &> $debug_data_dir/sensors.txt strings --version &> $debug_data_dir/strings.txt - nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt - nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt + if type -p nvidia-smi &>/dev/null;then + nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt + nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt + else + touch $debug_data_dir/nvidia-smi-absent + fi head -n 1 /proc/asound/card*/codec* &> $debug_data_dir/proc-asound-card-codec.txt ls /usr/bin/gcc* &> $debug_data_dir/gcc-sys-versions.txt gcc --version &> $debug_data_dir/gcc-version.txt