[TriLUG] Determining distro via script
Ian Kilgore
ian at trilug.org
Fri Nov 3 17:01:34 EST 2006
On Fri, Nov 03, 2006 at 04:28:44PM -0500, Cristobal Palmer wrote:
> For debian-y systems (such as Ubuntu), see
> http://packages.debian.org/unstable/misc/lsb-release
>
> cmpalmer at albert:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 6.10
> Release: 6.10
> Codename: edgy
> cmpalmer at albert:~$
>
> Old (fixed) bug:
> https://launchpad.net/distros/ubuntu/+source/debootstrap/+bug/9217
>
> I don't see an /etc/ubuntu-release file
>
> -CMP
>
No /etc/*-release file in debian land. There is /etc/debian_version,
though. (Note it won't say 'ubuntu' on an ubuntu system, just
testing/unstable).
--
Ian Kilgore
echo "pfxz at pfxz.trw" | tr pzfwxt ikagno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.trilug.org/pipermail/trilug/attachments/20061103/70817a61/attachment.pgp>
More information about the TriLUG
mailing list