Also detect Gentoo OS via the newer /etc/portage/make.conf location.
authorW. Trevor King <wking@tremily.us>
Tue, 24 Jul 2012 14:08:15 +0000 (10:08 -0400)
committerW. Trevor King <wking@tremily.us>
Tue, 24 Jul 2012 14:08:15 +0000 (10:08 -0400)
src/.bashrc.d/01detect_system

index d9a5393719a6f46a3d16be99c2f6061beaf86d00..7030a1b6316e9ee629ba52a17ea4e3bee9c8ea93 100644 (file)
@@ -5,7 +5,7 @@
 
 if [ -z "${OS}" ]; then
        export OS='UNKNOWN'
-       if [ -f '/etc/make.conf' ]; then
+       if [ -f '/etc/make.conf' ] || [ -f '/etc/portage/make.conf' ]; then
                export OS='Gentoo'
        elif [ "${SHELL#*gentoo}" != "${SHELL}" ]; then  # assumes 'gentoo' in prefix
                export OS='Gentoo Prefix'