Displaying 1 result from an estimated 1 matches for "lsbdistrelease_majorversion".
2007 Nov 07
1
A more elegant way of obtaining the major OS release number
...> instance, CentOS 4.0 through 4.5 would all be ''CentOS 4'' to some
> scripts, and CentOS 5.0 and greater would all be ''CentOS 5''.
>
> I slightly modified facter (via editing
> /usr/lib/site_ruby/1.8/facter.rb) to expose a new variable named
> lsbdistrelease_majorversion which only includes the portion of the LSB
> distribution release before the decimal point (if there is a point at
> all):
>
> ========
> 621c621,622
> < { "LSBRelease" => %r{^LSB Version:\t(.*)$},
> ---
> > {
> > "...