[TriLUG] Determining distro via script
Owen Berry
oberry at trilug.org
Fri Nov 3 14:55:53 EST 2006
Me too, but I'm wondering if it's even relevant for Gentoo. Maybe it
should be a timestamp or something rather. :-)
Owen
On Fri, Nov 03, 2006 at 02:15:09PM -0500, William Sutton wrote:
> I note that I also have it on gentoo.
>
> --
> William Sutton
>
>
> On Fri, 3 Nov 2006, Warren Myers wrote:
>
> > Far as I know it is - I've seen it on my (K)Ubuntu boxes, SuSE, RHEL,
> CentOS, etc
>
> On 11/3/06, Shawn Hood <shawnlhood at gmail.com> wrote:
> >
> > I was not aware that *-release was a conventional thing. Sweet. Thanks.
> >
> > On 11/3/06, Warren Myers <volcimaster at gmail.com> wrote:
> > > I think there is a /etc/<distro>-release file in every distro. on SuSE
> > it's
> > > /etc/SuSE-release
> > > CPU info can be gained from /proc/cpuinfo
> > >
> > > WMM
> > >
> > > On 11/3/06, Shawn Hood <shawnlhood at gmail.com> wrote:
> > > >
> > > > List,
> > > >
> > > > I am writing a shell script that performs different tasks based on the
> > > > distribution, distro version, and architecture of the machine. I was
> > > > wondering if anybody had any surefire ways to perform this function.
> > > > I know you could do this by parsing the default /etc/issue, a
> > > > combination of uname parameters, etc. Red Hat has
> > > > /etc/redhat-release, etc. There are a number of things that you could
> > > > derive distribution information from. I'm just looking for the most
> > > > common, easiest-to-use indicators. SLES9/10 and RHEL3/4 are most
> > > > important.
> > > >
> > > > --
> > > > Shawn Hood
> > > > (910) 670-1819 Mobile
> > > > --
> > > > TriLUG mailing list :
> > http://www.trilug.org/mailman/listinfo/trilug
> > > > TriLUG Organizational FAQ : http://trilug.org/faq/
> > > > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> > > >
> > >
> > >
> > >
> > > --
> > > http://warrenmyers.com
> > > "God may not play dice with the universe, but something strange is going
> > on
> > > with the prime numbers." --Paul Erd?s
> > > "It's not possible. We are the type of people who have everything in our
> > > favor going against us." --Ben Jarhvi, Short Circuit 2
> > >
> > > --
> > > TriLUG mailing list :
> > http://www.trilug.org/mailman/listinfo/trilug
> > > TriLUG Organizational FAQ : http://trilug.org/faq/
> > > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> > >
> > >
> >
> >
> > --
> > Shawn Hood
> > (910) 670-1819 Mobile
> >
> > --
> > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG Organizational FAQ : http://trilug.org/faq/
> > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> >
> >
>
>
> --
> http://warrenmyers.com
> "God may not play dice with the universe, but something strange is going on
> with the prime numbers." --Paul Erd?s
> "It's not possible. We are the type of people who have everything in our
> favor going against us." --Ben Jarhvi, Short Circuit 2
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
More information about the TriLUG
mailing list