Handle unknown distros by saying "unknown" instead of an empty string
and for Gentoo users actually mention it.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
}
function get_distro() {
+ os_VENDOR="unknown"
+
if [[ -x "`which lsb_release 2>/dev/null`" ]]
then
os_VENDOR=`lsb_release -i -s`
sed -r 's/\"|\(|\)//g' | awk '{print $2}'`
os_RELEASE=`awk '/VERSION_ID=/' /etc/os-release | sed 's/VERSION_ID=//' \
| sed 's/\"//g'`
+ elif [[ -f /etc/gentoo-release ]]
+ then
+ os_VENDOR="Gentoo"
fi
# Simply distro version string