From f1dcb81d1d6f02bfa111b16384ba7e367380004d Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sun, 22 Jul 2012 00:25:04 +0000 Subject: [PATCH] added to data collector /etc/os-release --- inxi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inxi b/inxi index a73bf81..87fe6d7 100755 --- a/inxi +++ b/inxi @@ -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