On 06/12/2014 12:35 PM, Karanbir Singh wrote: > On 06/12/2014 11:29 AM, Farkas Levente wrote: >> On 06/12/2014 12:04 PM, John R. Dennison wrote: >>> On Thu, Jun 12, 2014 at 10:58:31AM +0100, Dan Porter wrote: >>>> Hi Fred, >>>> >>>> You should checkout how Virtualmin does system version >>>> detection. >>>> >>>> http://software.virtualmin.com/lib/oschooser.pl >>>> http://software.virtualmin.com/lib/os_list.txt >>> >>> Which does it the 100% wrong way. >>> >>> Again, contents of /etc/*-release _can not be trusted_. >> >> the proper way for this is: >> rpm -q --nosignature --qf "%{VERSION}" --whatprovides redhat-release > > shouldnt that be system-release ? not. it's not working on os 5.x. but the above working everywhere. -- Levente "Si vis pacem para bellum!"