I just took at look at webmin which has always seemed to me to do
a good job of guessing the OS. It appears that that webmin looks
at /etc/.issue or /etc/issue, and the result of "uname -a". In
/usr/share/webmin take a look at oschooser.pl and os_list.txt.
Webmin has been removed from Debian but
On 2008-03-05 21:21 +0100, Beartooth wrote:
>Very interesting; It's fine in Fedora (so
> presumably also in CentOS, which I don't
> have booted right now)and in Debian; in Ubuntu
> it says "lenny/sid," which I guess is an answer.
A bad one, IMHO, since it does not distinguish Ubuntu from D
> This works in many distros, but not all ...
>
>(shopt -s nullglob; cat /etc/{debian_version
> ,redhat-release}*)
Very interesting; It's fine in Fedora (so
presumably also in CentOS, which I don't
have booted right now)and in Debian; in Ubuntu
it says "lenny/sid," which I guess is an
3 matches
Mail list logo