Determining Linux flavours from scripts
I have some scripts running in Linux and I need to determine the Linux flavour (RH EL/SuSE) in which it is running. Can anyone suggest a reliable way for determining this ? Using "uname" doesn't seems to be a reliable way.
If it is Red Hat or Mandrake, there should be a file '/etc/redhat-release' with the info.
dont know if its bulletproof but I use
There is no way to reliably determine this.
recent versions of linux distributions that conform to the LSB place this information in a standardized place:
Isn't this what all that horrific GNU Autoconf crap is supposedly good for?
Fog Creek Home