CentOS only has /etc/issue  lets use that


On Tue, Apr 22, 2014 at 3:42 PM, Juan-Manuel Clavijo <
notifications@github.com> wrote:

> In bootstrap/os_meta_info.sh:
>
> >              OS_DISTRO_BASED_ON='RedHat'
> >              OS_DISTRO=`cat /etc/redhat-release |sed s/\ release.*//`
> >              OS_PSUEDO_NAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//`
> >              OS_REVISION=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//`
> > -        elif [ -f /etc/SuSE-release ] ; then
> > -            OS_DISTRO_BASED_ON='SuSe'
> > -            OS_PSUEDO_NAME=`cat /etc/SuSE-release | tr "\n" ' '| sed s/VERSION.*//`
> > -            OS_REVISION=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*=\ //`
> > -        elif [ -f /etc/mandrake-release ] ; then
> > -            OS_DISTRO_BASED_ON='Mandrake'
> > -            OS_PSUEDO_NAME=`cat /etc/mandrake-release | sed s/.*\(// | sed s/\)//`
> > -            OS_REVISION=`cat /etc/mandrake-release | sed s/.*release\ // | sed s/\ .*//`
> > -        elif [ -f /etc/debian_version ] ; then
> > +        elif [ `cat /etc/issue.net | awk '{print $1}' ` == 'Ubuntu' ] ; then
>
> There are two of them /etc/issue and /etc/issue.net.
> I thought /etc/issue.net was for login in but it might only be for ssh
> logins. I have both. We could do /etc/issue
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/DemandCube/developer-setup/pull/8/files#r11879842>
> .
>



-- 
Steve Morin | Hacker, Entrepreneur, Startup Advisor
twitter.com/SteveMorin | stevemorin.com
*Live the dream start a startup. Make the world ... a better place.*