[TriLUG] Determining distro via script
Shawn Hood
shawnlhood at gmail.com
Fri Nov 3 14:07:46 EST 2006
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
More information about the TriLUG
mailing list