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