[NTLUG:Discuss] Any way to detect a distro?
Burton Strauss
Burton_Strauss at comcast.net
Fri Aug 19 08:47:27 CDT 2005
Grab the ntop source (from our cvs or from SourceForge) and look for our
utility, utils/linuxrelease (GPLed, naturally).
We've used it somewhat successfully for a couple of releases now. It's
basically looking in /etc for 'release' and/or 'version' files.
But, as was said in the other reply, it's very distro dependent. More
precisely, it works where we've tested it and probably not much further.
Clearly, it is (and will always be) an ad hoc solution. Even so, it's not
perfect, and I'd *Love* help improving it (esp. somebody with access to the
full range of SuSE versions), but it is a start.
(If anyone can help, email me off-list and I'll send you the cvs version -
there are some improvements between 3.1 and now - that way your effort
won't go to fix things that are already fixed.)
-----Burton
-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On Behalf
Of Leroy Tennison
Sent: Friday, August 19, 2005 4:56 AM
To: NTLUG Discussion List
Subject: [NTLUG:Discuss] Any way to detect a distro?
I know about uname but I'm wondering if there is any simple program like it
that tells you it's "SuSE 9.2" or "Fedora Core 4", etc.
_______________________________________________
https://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list