added to data collector /etc/os-release

This commit is contained in:
inxi-svn 2012-07-22 00:25:04 +00:00
parent ac3fe7fdb5
commit f1dcb81d1d

7
inxi
View file

@ -313,6 +313,7 @@ B_MDSTAT_FILE='false'
B_MEMINFO_FILE='false'
B_MODULES_FILE='false' #
B_MOUNTS_FILE='false'
B_OS_RELEASE='false' # new default distro id file? will this one work where lsb-release didn't?
B_PARTITIONS_FILE='false' #
B_PROC_DIR='false'
B_SCSI_FILE='false'
@ -327,6 +328,7 @@ FILE_MDSTAT='/proc/mdstat'
FILE_MEMINFO='/proc/meminfo'
FILE_MODULES='/proc/modules'
FILE_MOUNTS='/proc/mounts'
FILE_OS_RELEASE='/etc/os-release'
FILE_PARTITIONS='/proc/partitions'
FILE_SCSI='/proc/scsi/scsi'
FILE_XORG_LOG='/var/log/Xorg.0.log' # if not found, search and replace with actual location
@ -720,6 +722,10 @@ initialize_script_data()
if [[ -f $FILE_LSB_RELEASE ]];then
B_LSB_FILE='true'
fi
if [[ -f $FILE_OS_RELEASE ]];then
B_OS_FILE='true'
fi
if [[ -e $FILE_SCSI ]];then
B_SCSI_FILE='true'
@ -1353,6 +1359,7 @@ debug_data_collector()
ls /usr/bin/gcc* &> $debug_data_dir/gcc-sys-versions.txt
gcc --version &> $debug_data_dir/gcc-version.txt
cat $FILE_LSB_RELEASE &> $debug_data_dir/lsb-release.txt
cat $FILE_OS_RELEASE &> $debug_data_dir/os-release.txt
cat $FILE_ASOUND_DEVICE &> $debug_data_dir/proc-asound-device.txt
cat $FILE_ASOUND_VERSION &> $debug_data_dir/proc-asound-version.txt
cat $FILE_CPUINFO &> $debug_data_dir/proc-cpu-info.txt