On Thu, 2013-08-08 at 08:18 -0700, Tom Eastep wrote: > On 8/8/2013 5:59 AM, Togan Muftuoglu wrote: > > Hi Tom, > > > > Starting with openSUSE 13.1 there will be no more /etc/SuSE-release but > > /etc/os-release > > The following patch corrects this behavior and checks for both > > > > Hi Togan, > > Unfortunately, openSuSE isn't the only distribution that supplies > /etc/os-release; that file is also part of Debian 7 and Fedora 19. Is > there some other way that we can conclusively determine that the system > is running a SuSE release? > > Thanks, > -Tom Togan, Tom, I would expect those distributions that have /etc/os-release to follow http://www.freedesktop.org/software/systemd/man/os-release.html. If so, sourcing the file and checking for id will provide the distribution name. On my Fedora box I have: NAME=Fedora VERSION="19 (Schrödinger’s Cat)" ID=fedora VERSION_ID=19 PRETTY_NAME="Fedora 19 (Schrödinger’s Cat)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:19"
regards, Louis ps. sorry, I do not have the time to make a quick patch ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
