mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
reconfigured lsb lookup, h2's fix
This commit is contained in:
parent
78722b3748
commit
cfa634c6bc
23
inxi
23
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.8.12
|
||||
#### version: 0.8.13
|
||||
#### Date: December 16 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
||||
|
@ -1314,18 +1314,15 @@ get_distro_data()
|
|||
# This is a known bug, search for the word "strange" inside comments
|
||||
# echo "i='$i' a_distro_glob[@]='${a_distro_glob[@]}'"
|
||||
if [[ " ${a_distro_glob[@]} " == *" $i "* ]];then
|
||||
distro_file="${i}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
# Now lets see if the distro file is in the known-good working-lsb-list
|
||||
# if so, use lsb-release
|
||||
# this is for only those distro's with self named release/version files
|
||||
# because Mint does not use such, it must be done as below
|
||||
for j in $DISTROS_LSB_GOOD
|
||||
do
|
||||
if [[ " ${distro_file} " == *" $j "* ]];then
|
||||
distro_file='lsb-release'
|
||||
# Now lets see if the distro file is in the known-good working-lsb-list
|
||||
# if so, use lsb-release, if not, then just use the found file
|
||||
# this is for only those distro's with self named release/version files
|
||||
# because Mint does not use such, it must be done as below
|
||||
if [[ " $DISTROS_LSB_GOOD " == *" ${i} "* && -f /etc/lsb-release ]];then
|
||||
distro_file='lsb-release'
|
||||
else
|
||||
distro_file="${i}"
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue