On 05/22/2010 12:27 PM, Till Maas wrote:
On Sat, May 22, 2010 at 05:40:45PM +0200, Kevin Kofler wrote:
> Richard W.M. Jones wrote:
>> Unfortunately I couldn't find a really good way to differentiate
>> between Debian from Ubuntu without using 'lsb_release -i'.
>
> /etc/issue contains that information. It says something like:
> Ubuntu 9.04 \n \l
> (blank line)
>
> By the way, that also works on Fedora, my /etc/issue says:
> Fedora release 12 (Constantine)
> Kernel \r on an \m (\l)
> (blank line)
> The first line is the same as the contents of /etc/redhat-release.
This is not something one can rely on, because it is perfectly valid to
change these files.
In fact, our policy at work requires changing this file to a legal
notification about official use, no privacy, no hacking etc etc.