I have some system report scripts that need to determine the Linux distro they are running under.
Webmin (which is perl based) can tell you the OS is "Ubuntu Linux 8.04.2". How can I do that?
I am already parsing out a lot of information from /proc or from the output of commands like uptime or uname. I could also read a file in the /etc directory.
This script happens to be in php, but any solution using proc, utility output, or config file parsing is fine. I just need to know where to look.