For debian-y systems (such as Ubuntu), see
http://packages.debian.org/unstable/misc/lsb-release

[EMAIL PROTECTED]:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 6.10
Release:        6.10
Codename:       edgy
[EMAIL PROTECTED]:~$

Old (fixed) bug:
https://launchpad.net/distros/ubuntu/+source/debootstrap/+bug/9217

I don't see an /etc/ubuntu-release file

-CMP

On 11/3/06, Warren Myers <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/




--
Cristobal M. Palmer
UNC-CH SILS Student -- ils.unc.edu/~cmpalmer
TriLUG Vice Chair
"There are many roads to enlightenment, and thus many roads back to
the One True Debian" --crimsun
-- 
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/

Reply via email to